· 10 years ago · Mar 24, 2016, 01:09 PM
1-- phpMyAdmin SQL Dump
2-- version 4.4.3
3-- http://www.phpmyadmin.net
4--
5-- Host: localhost
6-- Generation Time: Oct 14, 2015 at 05:51 PM
7-- Server version: 5.6.24
8-- PHP Version: 5.6.8
9
10SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11SET time_zone = "+00:00";
12
13
14/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17/*!40101 SET NAMES utf8 */;
18
19--
20-- Database: `cdcol`
21--
22
23-- --------------------------------------------------------
24
25--
26-- Table structure for table `cds`
27--
28
29CREATE TABLE IF NOT EXISTS `cds` (
30 `titel` varchar(200) DEFAULT NULL,
31 `interpret` varchar(200) DEFAULT NULL,
32 `jahr` int(11) DEFAULT NULL,
33 `id` bigint(20) unsigned NOT NULL
34) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
35
36--
37-- Dumping data for table `cds`
38--
39
40INSERT INTO `cds` (`titel`, `interpret`, `jahr`, `id`) VALUES
41('Beauty', 'Ryuichi Sakamoto', 1990, 1),
42('Goodbye Country (Hello Nightclub)', 'Groove Armada', 2001, 4),
43('Glee', 'Bran Van 3000', 1997, 5);
44
45--
46-- Indexes for dumped tables
47--
48
49--
50-- Indexes for table `cds`
51--
52ALTER TABLE `cds`
53 ADD PRIMARY KEY (`id`);
54
55--
56-- AUTO_INCREMENT for dumped tables
57--
58
59--
60-- AUTO_INCREMENT for table `cds`
61--
62ALTER TABLE `cds`
63 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=13;--
64-- Database: `crowd`
65--
66
67-- --------------------------------------------------------
68
69--
70-- Table structure for table `actions`
71--
72
73CREATE TABLE IF NOT EXISTS `actions` (
74 `action_id` int(11) NOT NULL,
75 `action` varchar(75) NOT NULL,
76 `qualifiers` text NOT NULL,
77 `response` varchar(75) NOT NULL,
78 `response_vars` text NOT NULL,
79 `active` tinyint(4) NOT NULL
80) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Stores user defined actions triggered by certain events';
81
82--
83-- Dumping data for table `actions`
84--
85
86INSERT INTO `actions` (`action_id`, `action`, `qualifiers`, `response`, `response_vars`, `active`) VALUES
87(1, 'report_add', 'a:7:{s:4:"user";s:1:"0";s:8:"location";s:8:"anywhere";s:7:"keyword";s:0:"";s:8:"category";a:1:{i:0;s:1:"1";}s:17:"on_specific_count";s:0:"";s:28:"on_specific_count_collective";s:1:"0";s:13:"between_times";i:0;}', 'email', 'a:3:{s:18:"email_send_address";s:25:"divyaupadhyay42@gmail.com";s:13:"email_subject";s:4:"Test";s:10:"email_body";s:6:"Report";}', 1);
88
89-- --------------------------------------------------------
90
91--
92-- Table structure for table `actions_log`
93--
94
95CREATE TABLE IF NOT EXISTS `actions_log` (
96 `id` bigint(20) NOT NULL,
97 `action_id` int(11) NOT NULL,
98 `user_id` int(11) NOT NULL,
99 `time` int(10) NOT NULL
100) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores a log of triggered actions';
101
102-- --------------------------------------------------------
103
104--
105-- Table structure for table `alert`
106--
107
108CREATE TABLE IF NOT EXISTS `alert` (
109 `id` bigint(20) unsigned NOT NULL,
110 `user_id` int(11) unsigned DEFAULT '0',
111 `alert_type` tinyint(4) NOT NULL COMMENT '1 - MOBILE, 2 - EMAIL',
112 `alert_recipient` varchar(200) DEFAULT NULL,
113 `alert_code` varchar(30) DEFAULT NULL,
114 `alert_confirmed` tinyint(4) NOT NULL DEFAULT '0',
115 `alert_lat` varchar(150) DEFAULT NULL,
116 `alert_lon` varchar(150) DEFAULT NULL,
117 `alert_radius` tinyint(4) NOT NULL DEFAULT '20',
118 `alert_ip` varchar(100) DEFAULT NULL
119) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores alerts subscribers information';
120
121-- --------------------------------------------------------
122
123--
124-- Table structure for table `alert_category`
125--
126
127CREATE TABLE IF NOT EXISTS `alert_category` (
128 `id` int(11) NOT NULL,
129 `alert_id` bigint(20) unsigned DEFAULT NULL,
130 `category_id` int(11) unsigned DEFAULT NULL
131) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores subscriber alert categories';
132
133-- --------------------------------------------------------
134
135--
136-- Table structure for table `alert_sent`
137--
138
139CREATE TABLE IF NOT EXISTS `alert_sent` (
140 `id` bigint(20) unsigned NOT NULL,
141 `incident_id` bigint(20) unsigned NOT NULL,
142 `alert_id` bigint(20) unsigned NOT NULL,
143 `alert_date` datetime DEFAULT NULL
144) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores a log of alerts sent out to subscribers';
145
146-- --------------------------------------------------------
147
148--
149-- Table structure for table `api_banned`
150--
151
152CREATE TABLE IF NOT EXISTS `api_banned` (
153 `id` int(11) unsigned NOT NULL,
154 `banned_ipaddress` varchar(50) NOT NULL,
155 `banned_date` datetime NOT NULL
156) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='For logging banned API IP addresses';
157
158-- --------------------------------------------------------
159
160--
161-- Table structure for table `api_log`
162--
163
164CREATE TABLE IF NOT EXISTS `api_log` (
165 `id` int(11) unsigned NOT NULL,
166 `api_task` varchar(10) NOT NULL,
167 `api_parameters` varchar(100) NOT NULL,
168 `api_records` tinyint(11) NOT NULL,
169 `api_ipaddress` varchar(50) NOT NULL,
170 `api_date` datetime NOT NULL
171) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT='For logging API activities';
172
173-- --------------------------------------------------------
174
175--
176-- Table structure for table `api_settings`
177--
178
179CREATE TABLE IF NOT EXISTS `api_settings` (
180 `id` int(11) NOT NULL,
181 `default_record_limit` int(11) NOT NULL DEFAULT '20',
182 `max_record_limit` int(11) DEFAULT NULL,
183 `max_requests_per_ip_address` int(11) DEFAULT NULL,
184 `max_requests_quota_basis` int(11) DEFAULT NULL,
185 `modification_date` datetime NOT NULL
186) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='For storing API logging settings';
187
188-- --------------------------------------------------------
189
190--
191-- Table structure for table `badge`
192--
193
194CREATE TABLE IF NOT EXISTS `badge` (
195 `id` int(11) NOT NULL,
196 `name` varchar(250) NOT NULL,
197 `description` text NOT NULL
198) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores description of badges to be assigned';
199
200-- --------------------------------------------------------
201
202--
203-- Table structure for table `badge_users`
204--
205
206CREATE TABLE IF NOT EXISTS `badge_users` (
207 `user_id` int(11) unsigned NOT NULL,
208 `badge_id` int(11) NOT NULL
209) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores assigned badge information';
210
211-- --------------------------------------------------------
212
213--
214-- Table structure for table `category`
215--
216
217CREATE TABLE IF NOT EXISTS `category` (
218 `id` int(11) unsigned NOT NULL,
219 `parent_id` int(11) NOT NULL DEFAULT '0',
220 `locale` varchar(10) NOT NULL DEFAULT 'en_US',
221 `category_position` tinyint(4) NOT NULL DEFAULT '0',
222 `category_title` varchar(255) DEFAULT NULL,
223 `category_description` text,
224 `category_color` varchar(20) DEFAULT NULL,
225 `category_image` varchar(255) DEFAULT NULL,
226 `category_image_thumb` varchar(255) DEFAULT NULL,
227 `category_visible` tinyint(4) NOT NULL DEFAULT '1',
228 `category_trusted` tinyint(4) NOT NULL DEFAULT '0'
229) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='Holds information about categories defined for a deployment';
230
231--
232-- Dumping data for table `category`
233--
234
235INSERT INTO `category` (`id`, `parent_id`, `locale`, `category_position`, `category_title`, `category_description`, `category_color`, `category_image`, `category_image_thumb`, `category_visible`, `category_trusted`) VALUES
236(1, 0, 'en_US', 0, 'Teacher needed. Please Volunteer.', 'Category 1', '9900CC', NULL, NULL, 1, 0),
237(2, 0, 'en_US', 1, 'Immediate attention needed!', 'Category 2', '3300FF', 'category_2_1434869357.png', 'category_2_1434869357_16x16.png', 1, 0),
238(3, 0, 'en_US', 2, 'PCV assigned', 'Category 3', '663300', NULL, NULL, 1, 0),
239(4, 0, 'en_US', 4, 'Trusted Reports', 'Reports from trusted reporters', 'ebe575', NULL, NULL, 1, 1),
240(6, 0, 'en_US', 3, 'Healthcare needed', 'Category 4', '6f9e6b', 'category_6_1434869426.png', 'category_6_1434869426_16x16.png', 1, 0);
241
242-- --------------------------------------------------------
243
244--
245-- Table structure for table `category_lang`
246--
247
248CREATE TABLE IF NOT EXISTS `category_lang` (
249 `id` int(11) unsigned NOT NULL,
250 `category_id` int(11) unsigned NOT NULL,
251 `locale` varchar(10) DEFAULT NULL,
252 `category_title` varchar(255) DEFAULT NULL,
253 `category_description` text
254) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Holds translations for category titles and descriptions';
255
256-- --------------------------------------------------------
257
258--
259-- Table structure for table `city`
260--
261
262CREATE TABLE IF NOT EXISTS `city` (
263 `id` bigint(20) unsigned NOT NULL,
264 `country_id` int(11) DEFAULT NULL,
265 `city` varchar(200) DEFAULT NULL,
266 `city_lat` varchar(150) DEFAULT NULL,
267 `city_lon` varchar(200) DEFAULT NULL
268) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores cities of countries retrieved by user.';
269
270-- --------------------------------------------------------
271
272--
273-- Table structure for table `cluster`
274--
275
276CREATE TABLE IF NOT EXISTS `cluster` (
277 `id` int(11) NOT NULL,
278 `location_id` bigint(20) unsigned NOT NULL DEFAULT '0',
279 `latitude` double NOT NULL,
280 `longitude` double NOT NULL,
281 `latitude_min` double NOT NULL,
282 `longitude_min` double NOT NULL,
283 `latitude_max` double NOT NULL,
284 `longitude_max` double NOT NULL,
285 `child_count` int(11) NOT NULL,
286 `parent_id` int(11) NOT NULL,
287 `left_side` int(11) NOT NULL,
288 `right_side` int(11) NOT NULL,
289 `level` int(11) NOT NULL,
290 `incident_id` bigint(20) unsigned NOT NULL DEFAULT '0',
291 `category_id` int(11) unsigned NOT NULL DEFAULT '0'
292) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores information used for clustering of reports on the map.';
293
294-- --------------------------------------------------------
295
296--
297-- Table structure for table `comment`
298--
299
300CREATE TABLE IF NOT EXISTS `comment` (
301 `id` bigint(20) unsigned NOT NULL,
302 `incident_id` bigint(20) unsigned DEFAULT NULL,
303 `user_id` int(11) unsigned DEFAULT '0',
304 `comment_author` varchar(100) DEFAULT NULL,
305 `comment_email` varchar(120) DEFAULT NULL,
306 `comment_description` text,
307 `comment_ip` varchar(100) DEFAULT NULL,
308 `comment_spam` tinyint(4) NOT NULL DEFAULT '0',
309 `comment_active` tinyint(4) NOT NULL DEFAULT '0',
310 `comment_date` datetime DEFAULT NULL,
311 `comment_date_gmt` datetime DEFAULT NULL
312) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores comments made on reports';
313
314-- --------------------------------------------------------
315
316--
317-- Table structure for table `country`
318--
319
320CREATE TABLE IF NOT EXISTS `country` (
321 `id` int(11) NOT NULL,
322 `iso` varchar(10) DEFAULT NULL,
323 `country` varchar(100) DEFAULT NULL,
324 `capital` varchar(100) DEFAULT NULL,
325 `cities` tinyint(4) NOT NULL DEFAULT '0'
326) ENGINE=MyISAM AUTO_INCREMENT=250 DEFAULT CHARSET=utf8 COMMENT='Stores a list of all countries and their capital cities';
327
328--
329-- Dumping data for table `country`
330--
331
332INSERT INTO `country` (`id`, `iso`, `country`, `capital`, `cities`) VALUES
333(1, 'AD', 'Andorra', 'Andorra la Vella', 0),
334(2, 'AE', 'United Arab Emirates', 'Abu Dhabi', 0),
335(3, 'AF', 'Afghanistan', 'Kabul', 0),
336(4, 'AG', 'Antigua and Barbuda', 'St. John''s', 0),
337(5, 'AI', 'Anguilla', 'The Valley', 0),
338(6, 'AL', 'Albania', 'Tirana', 0),
339(7, 'AM', 'Armenia', 'Yerevan', 0),
340(8, 'AN', 'Netherlands Antilles', 'Willemstad', 0),
341(9, 'AO', 'Angola', 'Luanda', 0),
342(10, 'AQ', 'Antarctica', '', 0),
343(11, 'AR', 'Argentina', 'Buenos Aires', 0),
344(12, 'AS', 'American Samoa', 'Pago Pago', 0),
345(13, 'AT', 'Austria', 'Vienna', 0),
346(14, 'AU', 'Australia', 'Canberra', 0),
347(15, 'AW', 'Aruba', 'Oranjestad', 0),
348(16, 'AX', 'Aland Islands', 'Mariehamn', 0),
349(17, 'AZ', 'Azerbaijan', 'Baku', 0),
350(18, 'BA', 'Bosnia and Herzegovina', 'Sarajevo', 0),
351(19, 'BB', 'Barbados', 'Bridgetown', 0),
352(20, 'BD', 'Bangladesh', 'Dhaka', 0),
353(21, 'BE', 'Belgium', 'Brussels', 0),
354(22, 'BF', 'Burkina Faso', 'Ouagadougou', 0),
355(23, 'BG', 'Bulgaria', 'Sofia', 0),
356(24, 'BH', 'Bahrain', 'Manama', 0),
357(25, 'BI', 'Burundi', 'Bujumbura', 0),
358(26, 'BJ', 'Benin', 'Porto-Novo', 0),
359(27, 'BL', 'Saint Barthélemy', 'Gustavia', 0),
360(28, 'BM', 'Bermuda', 'Hamilton', 0),
361(29, 'BN', 'Brunei', 'Bandar Seri Begawan', 0),
362(30, 'BO', 'Bolivia', 'La Paz', 0),
363(31, 'BR', 'Brazil', 'BrasÃÂlia', 0),
364(32, 'BS', 'Bahamas', 'Nassau', 0),
365(33, 'BT', 'Bhutan', 'Thimphu', 0),
366(34, 'BV', 'Bouvet Island', '', 0),
367(35, 'BW', 'Botswana', 'Gaborone', 0),
368(36, 'BY', 'Belarus', 'Minsk', 0),
369(37, 'BZ', 'Belize', 'Belmopan', 0),
370(38, 'CA', 'Canada', 'Ottawa', 0),
371(39, 'CC', 'Cocos Islands', 'West Island', 0),
372(40, 'CD', 'Democratic Republic of the Congo', 'Kinshasa', 0),
373(41, 'CF', 'Central African Republic', 'Bangui', 0),
374(42, 'CG', 'Congo Brazzavile', 'Brazzaville', 0),
375(43, 'CH', 'Switzerland', 'Berne', 0),
376(44, 'CI', 'Ivory Coast', 'Yamoussoukro', 0),
377(45, 'CK', 'Cook Islands', 'Avarua', 0),
378(46, 'CL', 'Chile', 'Santiago', 0),
379(47, 'CM', 'Cameroon', 'Yaoundé', 0),
380(48, 'CN', 'China', 'Beijing', 0),
381(49, 'CO', 'Colombia', 'Bogotá', 0),
382(50, 'CR', 'Costa Rica', 'San José', 0),
383(51, 'CS', 'Serbia and Montenegro', 'Belgrade', 0),
384(52, 'CU', 'Cuba', 'Havana', 0),
385(53, 'CV', 'Cape Verde', 'Praia', 0),
386(54, 'CX', 'Christmas Island', 'Flying Fish Cove', 0),
387(55, 'CY', 'Cyprus', 'Nicosia', 0),
388(56, 'CZ', 'Czech Republic', 'Prague', 0),
389(57, 'DE', 'Germany', 'Berlin', 0),
390(58, 'DJ', 'Djibouti', 'Djibouti', 0),
391(59, 'DK', 'Denmark', 'Copenhagen', 0),
392(60, 'DM', 'Dominica', 'Roseau', 0),
393(61, 'DO', 'Dominican Republic', 'Santo Domingo', 0),
394(62, 'DZ', 'Algeria', 'Algiers', 0),
395(63, 'EC', 'Ecuador', 'Quito', 0),
396(64, 'EE', 'Estonia', 'Tallinn', 0),
397(65, 'EG', 'Egypt', 'Cairo', 0),
398(66, 'EH', 'Western Sahara', 'El-Aaiun', 0),
399(67, 'ER', 'Eritrea', 'Asmara', 0),
400(68, 'ES', 'Spain', 'Madrid', 0),
401(69, 'ET', 'Ethiopia', 'Addis Ababa', 0),
402(70, 'FI', 'Finland', 'Helsinki', 0),
403(71, 'FJ', 'Fiji', 'Suva', 0),
404(72, 'FK', 'Falkland Islands', 'Stanley', 0),
405(73, 'FM', 'Micronesia', 'Palikir', 0),
406(74, 'FO', 'Faroe Islands', 'Tórshavn', 0),
407(75, 'FR', 'France', 'Paris', 0),
408(76, 'GA', 'Gabon', 'Libreville', 0),
409(77, 'GB', 'United Kingdom', 'London', 0),
410(78, 'GD', 'Grenada', 'St. George''s', 0),
411(79, 'GE', 'Georgia', 'Tbilisi', 0),
412(80, 'GF', 'French Guiana', 'Cayenne', 0),
413(81, 'GG', 'Guernsey', 'St Peter Port', 0),
414(82, 'GH', 'Ghana', 'Accra', 0),
415(83, 'GI', 'Gibraltar', 'Gibraltar', 0),
416(84, 'GL', 'Greenland', 'Nuuk', 0),
417(85, 'GM', 'Gambia', 'Banjul', 0),
418(86, 'GN', 'Guinea', 'Conakry', 0),
419(87, 'GP', 'Guadeloupe', 'Basse-Terre', 0),
420(88, 'GQ', 'Equatorial Guinea', 'Malabo', 0),
421(89, 'GR', 'Greece', 'Athens', 0),
422(90, 'GS', 'South Georgia and the South Sandwich Islands', 'Grytviken', 0),
423(91, 'GT', 'Guatemala', 'Guatemala City', 0),
424(92, 'GU', 'Guam', 'Hagåtña', 0),
425(93, 'GW', 'Guinea-Bissau', 'Bissau', 0),
426(94, 'GY', 'Guyana', 'Georgetown', 0),
427(95, 'HK', 'Hong Kong', 'Hong Kong', 0),
428(96, 'HM', 'Heard Island and McDonald Islands', '', 0),
429(97, 'HN', 'Honduras', 'Tegucigalpa', 0),
430(98, 'HR', 'Croatia', 'Zagreb', 0),
431(99, 'HT', 'Haiti', 'Port-au-Prince', 0),
432(100, 'HU', 'Hungary', 'Budapest', 0),
433(101, 'ID', 'Indonesia', 'Jakarta', 0),
434(102, 'IE', 'Ireland', 'Dublin', 0),
435(103, 'IL', 'Israel', 'Jerusalem', 0),
436(104, 'IM', 'Isle of Man', 'Douglas, Isle of Man', 0),
437(105, 'IN', 'India', 'New Delhi', 0),
438(106, 'IO', 'British Indian Ocean Territory', 'Diego Garcia', 0),
439(107, 'IQ', 'Iraq', 'Baghdad', 0),
440(108, 'IR', 'Iran', 'Tehran', 0),
441(109, 'IS', 'Iceland', 'ReykjavÃÂk', 0),
442(110, 'IT', 'Italy', 'Rome', 0),
443(111, 'JE', 'Jersey', 'Saint Helier', 0),
444(112, 'JM', 'Jamaica', 'Kingston', 0),
445(113, 'JO', 'Jordan', 'Amman', 0),
446(114, 'JP', 'Japan', 'Tokyo', 0),
447(115, 'KE', 'Kenya', 'Nairobi', 0),
448(116, 'KG', 'Kyrgyzstan', 'Bishkek', 0),
449(117, 'KH', 'Cambodia', 'Phnom Penh', 0),
450(118, 'KI', 'Kiribati', 'South Tarawa', 0),
451(119, 'KM', 'Comoros', 'Moroni', 0),
452(120, 'KN', 'Saint Kitts and Nevis', 'Basseterre', 0),
453(121, 'KP', 'North Korea', 'Pyongyang', 0),
454(122, 'KR', 'South Korea', 'Seoul', 0),
455(123, 'KW', 'Kuwait', 'Kuwait City', 0),
456(124, 'KY', 'Cayman Islands', 'George Town', 0),
457(125, 'KZ', 'Kazakhstan', 'Astana', 0),
458(126, 'LA', 'Laos', 'Vientiane', 0),
459(127, 'LB', 'Lebanon', 'Beirut', 0),
460(128, 'LC', 'Saint Lucia', 'Castries', 0),
461(129, 'LI', 'Liechtenstein', 'Vaduz', 0),
462(130, 'LK', 'Sri Lanka', 'Colombo', 0),
463(131, 'LR', 'Liberia', 'Monrovia', 0),
464(132, 'LS', 'Lesotho', 'Maseru', 0),
465(133, 'LT', 'Lithuania', 'Vilnius', 0),
466(134, 'LU', 'Luxembourg', 'Luxembourg', 0),
467(135, 'LV', 'Latvia', 'Riga', 0),
468(136, 'LY', 'Libya', 'Tripolis', 0),
469(137, 'MA', 'Morocco', 'Rabat', 0),
470(138, 'MC', 'Monaco', 'Monaco', 0),
471(139, 'MD', 'Moldova', 'Chi_in_u', 0),
472(140, 'ME', 'Montenegro', 'Podgorica', 0),
473(141, 'MF', 'Saint Martin', 'Marigot', 0),
474(142, 'MG', 'Madagascar', 'Antananarivo', 0),
475(143, 'MH', 'Marshall Islands', 'Uliga', 0),
476(144, 'MK', 'Macedonia', 'Skopje', 0),
477(145, 'ML', 'Mali', 'Bamako', 0),
478(146, 'MM', 'Myanmar', 'Yangon', 0),
479(147, 'MN', 'Mongolia', 'Ulan Bator', 0),
480(148, 'MO', 'Macao', 'Macao', 0),
481(149, 'MP', 'Northern Mariana Islands', 'Saipan', 0),
482(150, 'MQ', 'Martinique', 'Fort-de-France', 0),
483(151, 'MR', 'Mauritania', 'Nouakchott', 0),
484(152, 'MS', 'Montserrat', 'Plymouth', 0),
485(153, 'MT', 'Malta', 'Valletta', 0),
486(154, 'MU', 'Mauritius', 'Port Louis', 0),
487(155, 'MV', 'Maldives', 'Malé', 0),
488(156, 'MW', 'Malawi', 'Lilongwe', 0),
489(157, 'MX', 'Mexico', 'Mexico City', 0),
490(158, 'MY', 'Malaysia', 'Kuala Lumpur', 0),
491(159, 'MZ', 'Mozambique', 'Maputo', 0),
492(160, 'NA', 'Namibia', 'Windhoek', 0),
493(161, 'NC', 'New Caledonia', 'Nouméa', 0),
494(162, 'NE', 'Niger', 'Niamey', 0),
495(163, 'NF', 'Norfolk Island', 'Kingston', 0),
496(164, 'NG', 'Nigeria', 'Abuja', 0),
497(165, 'NI', 'Nicaragua', 'Managua', 0),
498(166, 'NL', 'Netherlands', 'Amsterdam', 0),
499(167, 'NO', 'Norway', 'Oslo', 0),
500(168, 'NP', 'Nepal', 'Kathmandu', 0),
501(169, 'NR', 'Nauru', 'Yaren', 0),
502(170, 'NU', 'Niue', 'Alofi', 0),
503(171, 'NZ', 'New Zealand', 'Wellington', 0),
504(172, 'OM', 'Oman', 'Muscat', 0),
505(173, 'PA', 'Panama', 'Panama City', 0),
506(174, 'PE', 'Peru', 'Lima', 0),
507(175, 'PF', 'French Polynesia', 'Papeete', 0),
508(176, 'PG', 'Papua New Guinea', 'Port Moresby', 0),
509(177, 'PH', 'Philippines', 'Manila', 0),
510(178, 'PK', 'Pakistan', 'Islamabad', 0),
511(179, 'PL', 'Poland', 'Warsaw', 0),
512(180, 'PM', 'Saint Pierre and Miquelon', 'Saint-Pierre', 0),
513(181, 'PN', 'Pitcairn', 'Adamstown', 0),
514(182, 'PR', 'Puerto Rico', 'San Juan', 0),
515(183, 'PS', 'Palestinian Territory', 'East Jerusalem', 0),
516(184, 'PT', 'Portugal', 'Lisbon', 0),
517(185, 'PW', 'Palau', 'Koror', 0),
518(186, 'PY', 'Paraguay', 'Asunción', 0),
519(187, 'QA', 'Qatar', 'Doha', 0),
520(188, 'RE', 'Reunion', 'Saint-Denis', 0),
521(189, 'RO', 'Romania', 'Bucharest', 0),
522(190, 'RS', 'Serbia', 'Belgrade', 0),
523(191, 'RU', 'Russia', 'Moscow', 0),
524(192, 'RW', 'Rwanda', 'Kigali', 0),
525(193, 'SA', 'Saudi Arabia', 'Riyadh', 0),
526(194, 'SB', 'Solomon Islands', 'Honiara', 0),
527(195, 'SC', 'Seychelles', 'Victoria', 0),
528(196, 'SD', 'Sudan', 'Khartoum', 0),
529(197, 'SE', 'Sweden', 'Stockholm', 0),
530(198, 'SG', 'Singapore', 'Singapur', 0),
531(199, 'SH', 'Saint Helena', 'Jamestown', 0),
532(200, 'SI', 'Slovenia', 'Ljubljana', 0),
533(201, 'SJ', 'Svalbard and Jan Mayen', 'Longyearbyen', 0),
534(202, 'SK', 'Slovakia', 'Bratislava', 0),
535(203, 'SL', 'Sierra Leone', 'Freetown', 0),
536(204, 'SM', 'San Marino', 'San Marino', 0),
537(205, 'SN', 'Senegal', 'Dakar', 0),
538(206, 'SO', 'Somalia', 'Mogadishu', 0),
539(207, 'SR', 'Suriname', 'Paramaribo', 0),
540(208, 'ST', 'Sao Tome and Principe', 'São Tomé', 0),
541(209, 'SV', 'El Salvador', 'San Salvador', 0),
542(210, 'SY', 'Syria', 'Damascus', 0),
543(211, 'SZ', 'Swaziland', 'Mbabane', 0),
544(212, 'TC', 'Turks and Caicos Islands', 'Cockburn Town', 0),
545(213, 'TD', 'Chad', 'N''Djamena', 0),
546(214, 'TF', 'French Southern Territories', 'Martin-de-Viviès', 0),
547(215, 'TG', 'Togo', 'Lomé', 0),
548(216, 'TH', 'Thailand', 'Bangkok', 0),
549(217, 'TJ', 'Tajikistan', 'Dushanbe', 0),
550(218, 'TK', 'Tokelau', '', 0),
551(219, 'TL', 'East Timor', 'Dili', 0),
552(220, 'TM', 'Turkmenistan', 'Ashgabat', 0),
553(221, 'TN', 'Tunisia', 'Tunis', 0),
554(222, 'TO', 'Tonga', 'Nuku''alofa', 0),
555(223, 'TR', 'Turkey', 'Ankara', 0),
556(224, 'TT', 'Trinidad and Tobago', 'Port of Spain', 0),
557(225, 'TV', 'Tuvalu', 'Vaiaku', 0),
558(226, 'TW', 'Taiwan', 'Taipei', 0),
559(227, 'TZ', 'Tanzania', 'Dar es Salaam', 0),
560(228, 'UA', 'Ukraine', 'Kiev', 0),
561(229, 'UG', 'Uganda', 'Kampala', 0),
562(230, 'UM', 'United States Minor Outlying Islands', '', 0),
563(231, 'US', 'United States', 'Washington', 0),
564(232, 'UY', 'Uruguay', 'Montevideo', 0),
565(233, 'UZ', 'Uzbekistan', 'Tashkent', 0),
566(234, 'VA', 'Vatican', 'Vatican City', 0),
567(235, 'VC', 'Saint Vincent and the Grenadines', 'Kingstown', 0),
568(236, 'VE', 'Venezuela', 'Caracas', 0),
569(237, 'VG', 'British Virgin Islands', 'Road Town', 0),
570(238, 'VI', 'U.S. Virgin Islands', 'Charlotte Amalie', 0),
571(239, 'VN', 'Vietnam', 'Hanoi', 0),
572(240, 'VU', 'Vanuatu', 'Port Vila', 0),
573(241, 'WF', 'Wallis and Futuna', 'Matâ''Utu', 0),
574(242, 'WS', 'Samoa', 'Apia', 0),
575(243, 'YE', 'Yemen', 'San‘a’', 0),
576(244, 'YT', 'Mayotte', 'Mamoudzou', 0),
577(245, 'ZA', 'South Africa', 'Pretoria', 0),
578(246, 'ZM', 'Zambia', 'Lusaka', 0),
579(247, 'ZW', 'Zimbabwe', 'Harare', 0),
580(248, 'XK', 'Kosovo', 'Pristina', 0),
581(249, 'SS', 'South Sudan', 'Juba', 0);
582
583-- --------------------------------------------------------
584
585--
586-- Table structure for table `externalapp`
587--
588
589CREATE TABLE IF NOT EXISTS `externalapp` (
590 `id` int(11) NOT NULL,
591 `name` varchar(255) NOT NULL,
592 `url` varchar(255) NOT NULL
593) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Info on external apps(mobile) that work with your deployment';
594
595--
596-- Dumping data for table `externalapp`
597--
598
599INSERT INTO `externalapp` (`id`, `name`, `url`) VALUES
600(1, 'iPhone', 'http://download.ushahidi.com/track_download.php?download=ios'),
601(2, 'Android', 'http://download.ushahidi.com/track_download.php?download=android');
602
603-- --------------------------------------------------------
604
605--
606-- Table structure for table `feed`
607--
608
609CREATE TABLE IF NOT EXISTS `feed` (
610 `id` int(11) unsigned NOT NULL,
611 `feed_name` varchar(255) DEFAULT NULL,
612 `feed_url` varchar(255) DEFAULT NULL,
613 `feed_cache` text,
614 `feed_active` tinyint(4) DEFAULT '1',
615 `feed_update` int(11) NOT NULL DEFAULT '0'
616) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Information about RSS Feeds a deployment subscribes to';
617
618-- --------------------------------------------------------
619
620--
621-- Table structure for table `feed_item`
622--
623
624CREATE TABLE IF NOT EXISTS `feed_item` (
625 `id` bigint(20) unsigned NOT NULL,
626 `feed_id` int(11) unsigned NOT NULL,
627 `location_id` bigint(20) unsigned DEFAULT '0',
628 `incident_id` bigint(20) unsigned NOT NULL DEFAULT '0',
629 `item_title` varchar(255) DEFAULT NULL,
630 `item_description` text,
631 `item_link` varchar(255) DEFAULT NULL,
632 `item_date` datetime DEFAULT NULL
633) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores feed items pulled from each RSS Feed';
634
635-- --------------------------------------------------------
636
637--
638-- Table structure for table `feed_item_category`
639--
640
641CREATE TABLE IF NOT EXISTS `feed_item_category` (
642 `id` int(11) NOT NULL,
643 `feed_item_id` bigint(20) unsigned NOT NULL DEFAULT '0',
644 `category_id` int(11) unsigned NOT NULL DEFAULT '0'
645) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores fetched feed items categories';
646
647-- --------------------------------------------------------
648
649--
650-- Table structure for table `form`
651--
652
653CREATE TABLE IF NOT EXISTS `form` (
654 `id` int(11) NOT NULL,
655 `form_title` varchar(200) NOT NULL,
656 `form_description` text,
657 `form_active` tinyint(4) DEFAULT '1',
658 `report_title_name` varchar(200) DEFAULT NULL,
659 `description_name` varchar(200) DEFAULT NULL,
660 `description_active` tinyint(4) DEFAULT '1'
661) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Stores all report submission forms created(default+custom)';
662
663--
664-- Dumping data for table `form`
665--
666
667INSERT INTO `form` (`id`, `form_title`, `form_description`, `form_active`, `report_title_name`, `description_name`, `description_active`) VALUES
668(1, 'Student Report', 'Default form, for report entry', 1, NULL, NULL, 0);
669
670-- --------------------------------------------------------
671
672--
673-- Table structure for table `form_field`
674--
675
676CREATE TABLE IF NOT EXISTS `form_field` (
677 `id` int(11) NOT NULL,
678 `form_id` int(11) NOT NULL DEFAULT '1',
679 `field_name` varchar(200) DEFAULT NULL,
680 `field_description` text,
681 `field_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1 - TEXTFIELD, 2 - TEXTAREA (FREETEXT), 3 - DATE, 4 - PASSWORD, 5 - RADIO, 6 - CHECKBOX',
682 `field_required` tinyint(4) DEFAULT '0',
683 `field_position` tinyint(4) NOT NULL DEFAULT '0',
684 `field_default` text,
685 `field_maxlength` int(11) NOT NULL DEFAULT '0',
686 `field_width` smallint(6) NOT NULL DEFAULT '0',
687 `field_height` tinyint(4) DEFAULT '5',
688 `field_isdate` tinyint(4) NOT NULL DEFAULT '0',
689 `field_ispublic_visible` tinyint(4) NOT NULL DEFAULT '0',
690 `field_ispublic_submit` tinyint(4) NOT NULL DEFAULT '0'
691) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='Stores all custom form fields created by users';
692
693--
694-- Dumping data for table `form_field`
695--
696
697INSERT INTO `form_field` (`id`, `form_id`, `field_name`, `field_description`, `field_type`, `field_required`, `field_position`, `field_default`, `field_maxlength`, `field_width`, `field_height`, `field_isdate`, `field_ispublic_visible`, `field_ispublic_submit`) VALUES
698(1, 1, 'Name', '', 1, 1, 1, '', 0, 0, 5, 0, 0, 0),
699(2, 1, 'Age', '', 1, 1, 2, '', 0, 0, 5, 0, 0, 0),
700(3, 1, 'Gender', '', 7, 0, 3, 'Male,Female,Other', 0, 0, 5, 0, 0, 0),
701(4, 1, 'Does the child know ASL?', '', 5, 1, 4, 'Yes,No,Not very well', 0, 0, 5, 0, 0, 0),
702(5, 1, 'Does the child go to a school?', '', 5, 1, 5, 'Yes,No', 0, 0, 5, 0, 0, 0),
703(6, 1, 'Previous PCVs teaching', 'Was the child taught by any PCV previously? If yes, give their names.', 1, 0, 6, '', 0, 0, 5, 0, 0, 0),
704(12, 1, 'How much has been taught to the child till now?', 'State topics, subjects etc. covered.', 2, 0, 7, '', 0, 0, 5, 0, 0, 0),
705(11, 1, 'Educational Requirements', 'What needs to be taught to the child at this level? Also, mention if ASL is to be taught as well.', 2, 1, 8, '', 0, 0, 5, 0, 0, 0),
706(13, 1, 'Any Healthcare Requirements', 'Does the child complain of any disease or ailment? Do you think s/he needs a health check-up?', 2, 0, 10, '', 0, 0, 5, 0, 0, 0),
707(10, 1, 'Books or stationery required', 'If yes, state the particular items required and their quantities.', 2, 0, 9, '', 0, 0, 5, 0, 0, 0),
708(14, 1, 'Any other requirements or remarks', '', 1, 0, 11, '', 0, 0, 5, 0, 0, 0);
709
710-- --------------------------------------------------------
711
712--
713-- Table structure for table `form_field_option`
714--
715
716CREATE TABLE IF NOT EXISTS `form_field_option` (
717 `id` int(11) NOT NULL,
718 `form_field_id` int(11) NOT NULL DEFAULT '0',
719 `option_name` varchar(200) DEFAULT NULL,
720 `option_value` text
721) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT='Options related to custom form fields';
722
723--
724-- Dumping data for table `form_field_option`
725--
726
727INSERT INTO `form_field_option` (`id`, `form_field_id`, `option_name`, `option_value`) VALUES
728(1, 1, 'field_datatype', 'text'),
729(2, 1, 'field_hidden', '0'),
730(3, 2, 'field_datatype', 'numeric'),
731(4, 2, 'field_hidden', '0'),
732(5, 6, 'field_datatype', 'text'),
733(6, 6, 'field_hidden', '0'),
734(15, 12, 'field_datatype', 'text'),
735(14, 11, 'field_datatype', 'text'),
736(13, 10, 'field_datatype', 'text'),
737(16, 13, 'field_datatype', 'text'),
738(17, 14, 'field_datatype', 'text'),
739(18, 14, 'field_hidden', '0');
740
741-- --------------------------------------------------------
742
743--
744-- Table structure for table `form_response`
745--
746
747CREATE TABLE IF NOT EXISTS `form_response` (
748 `id` bigint(20) NOT NULL,
749 `form_field_id` int(11) NOT NULL,
750 `incident_id` bigint(20) unsigned NOT NULL,
751 `form_response` text NOT NULL
752) ENGINE=MyISAM AUTO_INCREMENT=333 DEFAULT CHARSET=utf8 COMMENT='Stores responses to custom form fields';
753
754--
755-- Dumping data for table `form_response`
756--
757
758INSERT INTO `form_response` (`id`, `form_field_id`, `incident_id`, `form_response`) VALUES
759(50, 14, 20, '---'),
760(49, 13, 20, '---'),
761(48, 10, 20, '---'),
762(47, 11, 20, '---'),
763(46, 12, 20, '---'),
764(45, 6, 20, 'none'),
765(44, 5, 20, 'No'),
766(43, 4, 20, 'No'),
767(42, 3, 20, 'Female'),
768(41, 2, 20, '4'),
769(40, 1, 20, 'princy'),
770(51, 1, 23, 'valeria johns'),
771(52, 2, 23, '4'),
772(53, 3, 23, 'Female'),
773(54, 4, 23, 'No'),
774(55, 5, 23, 'No'),
775(56, 6, 23, 'none'),
776(57, 12, 23, 'test'),
777(58, 11, 23, 'test'),
778(59, 10, 23, 'test'),
779(60, 13, 23, 'test'),
780(61, 14, 23, 'test'),
781(102, 11, 29, 'ASL needed.\nMaths,science and english for 3rd grade.'),
782(101, 12, 29, 'Primary ed'),
783(100, 6, 29, 'Tania Joseph'),
784(99, 5, 29, 'Yes'),
785(98, 4, 29, 'No'),
786(97, 3, 29, 'Female'),
787(96, 2, 29, '7'),
788(95, 1, 29, 'Mary'),
789(103, 10, 29, 'pencils, copies, books'),
790(104, 13, 29, 'yes, she has mild fever'),
791(105, 14, 29, 'no'),
792(106, 1, 4, 'sarah'),
793(107, 2, 4, '4'),
794(108, 3, 4, 'Female'),
795(109, 4, 4, 'Not very well'),
796(110, 5, 4, 'Yes'),
797(111, 6, 4, ''),
798(112, 12, 4, ''),
799(113, 11, 4, 'test'),
800(114, 10, 4, ''),
801(115, 13, 4, ''),
802(116, 14, 4, ''),
803(117, 1, 3, 'Tom'),
804(118, 2, 3, '8'),
805(119, 3, 3, 'Male'),
806(120, 4, 3, 'Yes'),
807(121, 5, 3, 'Yes'),
808(122, 6, 3, 'sample'),
809(123, 12, 3, 'samplesamplesamplesamplesamplesample'),
810(124, 11, 3, 'samplesamplesamplesample'),
811(125, 10, 3, 'samplesample'),
812(126, 13, 3, 'samplesample'),
813(127, 14, 3, 'samplesample'),
814(128, 1, 1, 'sample'),
815(129, 2, 1, '5'),
816(130, 3, 1, 'Male'),
817(131, 4, 1, 'Not very well'),
818(132, 5, 1, 'No'),
819(133, 6, 1, ''),
820(134, 12, 1, ''),
821(135, 11, 1, 'samplesample'),
822(136, 10, 1, ''),
823(137, 13, 1, ''),
824(138, 14, 1, ''),
825(139, 1, 2, 'anothersample'),
826(140, 2, 2, '9'),
827(141, 3, 2, 'Male'),
828(142, 4, 2, 'Not very well'),
829(143, 5, 2, 'No'),
830(144, 6, 2, 'anothersample'),
831(145, 12, 2, 'anothersampleanothersampleanothersample'),
832(146, 11, 2, 'anothersampleanothersampleanothersample'),
833(147, 10, 2, ''),
834(148, 13, 2, 'anothersample'),
835(149, 14, 2, ''),
836(320, 3, 47, 'Male'),
837(319, 2, 47, '9'),
838(318, 1, 47, 'anothersample'),
839(316, 5, 46, 'Yes'),
840(317, 11, 46, 'test'),
841(315, 4, 46, 'Not very well'),
842(314, 3, 46, 'Female'),
843(312, 1, 46, 'sarah'),
844(313, 2, 46, '4'),
845(311, 14, 45, 'samplesample'),
846(310, 13, 45, 'samplesample'),
847(309, 10, 45, 'samplesample'),
848(308, 11, 45, 'samplesamplesamplesample'),
849(307, 12, 45, 'samplesamplesamplesamplesamplesample'),
850(306, 6, 45, 'sample'),
851(305, 5, 45, 'Yes'),
852(304, 4, 45, 'Yes'),
853(303, 3, 45, 'Male'),
854(302, 2, 45, '8'),
855(301, 1, 45, 'Tom'),
856(300, 14, 44, '---'),
857(299, 13, 44, '---'),
858(298, 10, 44, '---'),
859(297, 11, 44, '---'),
860(296, 12, 44, '---'),
861(295, 6, 44, 'none'),
862(294, 5, 44, 'No'),
863(293, 4, 44, 'No'),
864(292, 3, 44, 'Female'),
865(291, 2, 44, '4'),
866(290, 1, 44, 'princy'),
867(288, 13, 43, 'test'),
868(289, 14, 43, 'test'),
869(286, 11, 43, 'test'),
870(287, 10, 43, 'test'),
871(284, 6, 43, 'none'),
872(285, 12, 43, 'test'),
873(283, 5, 43, 'No'),
874(282, 4, 43, 'No'),
875(281, 3, 43, 'Female'),
876(280, 2, 43, '4'),
877(279, 1, 43, 'valeria johns'),
878(278, 14, 42, 'no'),
879(277, 13, 42, 'yes, she has mild fever'),
880(276, 10, 42, 'pencils, copies, books'),
881(275, 11, 42, 'ASL needed.\nMaths,science and english for 3rd grade.'),
882(274, 12, 42, 'Primary ed'),
883(273, 6, 42, 'Tania Joseph'),
884(272, 5, 42, 'Yes'),
885(271, 4, 42, 'No'),
886(270, 3, 42, 'Female'),
887(269, 2, 42, '7'),
888(268, 1, 42, 'Mary'),
889(321, 4, 47, 'Not very well'),
890(322, 5, 47, 'No'),
891(323, 6, 47, 'anothersample'),
892(324, 12, 47, 'anothersampleanothersampleanothersample'),
893(325, 11, 47, 'anothersampleanothersampleanothersample'),
894(326, 13, 47, 'anothersample'),
895(327, 1, 48, 'sample'),
896(328, 2, 48, '5'),
897(329, 3, 48, 'Male'),
898(330, 4, 48, 'Not very well'),
899(331, 5, 48, 'No'),
900(332, 11, 48, 'samplesample');
901
902-- --------------------------------------------------------
903
904--
905-- Table structure for table `geometry`
906--
907
908CREATE TABLE IF NOT EXISTS `geometry` (
909 `id` int(11) unsigned NOT NULL,
910 `incident_id` bigint(20) unsigned NOT NULL,
911 `geometry` geometry NOT NULL,
912 `geometry_label` varchar(150) DEFAULT NULL,
913 `geometry_comment` varchar(255) DEFAULT NULL,
914 `geometry_color` varchar(20) DEFAULT NULL,
915 `geometry_strokewidth` varchar(5) DEFAULT NULL
916) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores map geometries i.e polygons, lines etc';
917
918-- --------------------------------------------------------
919
920--
921-- Table structure for table `incident`
922--
923
924CREATE TABLE IF NOT EXISTS `incident` (
925 `id` bigint(20) unsigned NOT NULL,
926 `location_id` bigint(20) unsigned NOT NULL,
927 `form_id` int(11) NOT NULL DEFAULT '1',
928 `locale` varchar(10) NOT NULL DEFAULT 'en_US',
929 `user_id` int(11) unsigned DEFAULT NULL,
930 `incident_title` varchar(255) DEFAULT NULL,
931 `incident_description` longtext,
932 `incident_date` datetime DEFAULT NULL,
933 `incident_mode` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1 - WEB, 2 - SMS, 3 - EMAIL, 4 - TWITTER',
934 `incident_active` tinyint(4) NOT NULL DEFAULT '0',
935 `incident_verified` tinyint(4) NOT NULL DEFAULT '0',
936 `incident_dateadd` datetime DEFAULT NULL,
937 `incident_dateadd_gmt` datetime DEFAULT NULL,
938 `incident_datemodify` datetime DEFAULT NULL,
939 `incident_alert_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0 - Not Tagged for Sending, 1 - Tagged for Sending, 2 - Alerts Have Been Sent',
940 `incident_zoom` tinyint(4) DEFAULT NULL
941) ENGINE=MyISAM AUTO_INCREMENT=49 DEFAULT CHARSET=utf8 COMMENT='Stores reports submitted';
942
943--
944-- Dumping data for table `incident`
945--
946
947INSERT INTO `incident` (`id`, `location_id`, `form_id`, `locale`, `user_id`, `incident_title`, `incident_description`, `incident_date`, `incident_mode`, `incident_active`, `incident_verified`, `incident_dateadd`, `incident_dateadd_gmt`, `incident_datemodify`, `incident_alert_status`, `incident_zoom`) VALUES
948(1, 1, 1, 'en_US', 1, 'Hello Ushahidi!', NULL, '2012-04-04 12:54:00', 1, 1, 1, NULL, NULL, '2015-06-05 23:32:50', 1, 6),
949(47, 47, 1, 'en_US', 0, 'milton', '', '2015-06-05 17:18:00', 1, 1, 1, '2015-06-05 17:19:29', NULL, NULL, 0, NULL),
950(2, 2, 1, 'en_US', 1, 'test', NULL, '2015-06-05 17:18:00', 1, 1, 1, '2015-06-05 17:19:29', NULL, '2015-06-05 23:31:08', 1, 7),
951(3, 3, 1, 'en_US', 0, 'Tom', NULL, '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 20:34:54', NULL, '2015-06-05 23:29:44', 1, 6),
952(4, 4, 1, 'en_US', 0, 'Sarah', NULL, '2015-03-03 10:10:00', 1, 1, 1, '2015-06-05 20:34:54', NULL, '2015-06-05 23:28:43', 1, 6),
953(44, 44, 1, 'en_US', 0, 'Paula', '', '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 23:06:48', NULL, NULL, 0, NULL),
954(23, 23, 1, 'en_US', 0, 'Valeria', '', '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 23:10:23', NULL, NULL, 0, NULL),
955(20, 20, 1, 'en_US', 0, 'Princy', '', '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 23:06:48', NULL, NULL, 0, NULL),
956(46, 46, 1, 'en_US', 0, 'Samaira', '', '2015-03-03 10:10:00', 1, 1, 1, '2015-06-05 20:34:54', NULL, NULL, 1, NULL),
957(29, 29, 1, 'en_US', 1, 'Mary Jones Diaz', NULL, '2015-06-05 23:24:00', 1, 1, 1, '2015-06-05 23:27:03', NULL, NULL, 1, 6),
958(45, 45, 1, 'en_US', 0, 'Todd', '', '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 20:34:54', NULL, NULL, 0, NULL),
959(43, 43, 1, 'en_US', 0, 'Vannessa', '', '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 23:10:23', NULL, NULL, 0, NULL),
960(42, 42, 1, 'en_US', 0, 'Macy', '', '2015-06-05 23:24:00', 1, 1, 1, '2015-06-05 23:27:03', NULL, NULL, 0, NULL),
961(48, 48, 1, 'en_US', 0, 'ruth', '', '2012-04-04 12:54:00', 1, 1, 1, '2015-06-06 08:54:33', NULL, NULL, 0, NULL);
962
963-- --------------------------------------------------------
964
965--
966-- Table structure for table `incident_category`
967--
968
969CREATE TABLE IF NOT EXISTS `incident_category` (
970 `id` int(11) NOT NULL,
971 `incident_id` bigint(20) unsigned NOT NULL DEFAULT '0',
972 `category_id` int(11) unsigned NOT NULL DEFAULT '0'
973) ENGINE=MyISAM AUTO_INCREMENT=82 DEFAULT CHARSET=utf8 COMMENT='Stores submitted reports categories';
974
975--
976-- Dumping data for table `incident_category`
977--
978
979INSERT INTO `incident_category` (`id`, `incident_id`, `category_id`) VALUES
980(41, 1, 1),
981(39, 2, 3),
982(37, 3, 3),
983(30, 29, 1),
984(33, 29, 6),
985(23, 23, 3),
986(31, 29, 2),
987(21, 20, 3),
988(32, 29, 3),
989(22, 23, 1),
990(34, 29, 4),
991(35, 4, 1),
992(36, 4, 6),
993(40, 2, 6),
994(80, 47, 6),
995(79, 47, 3),
996(78, 46, 6),
997(77, 46, 1),
998(76, 45, 3),
999(75, 44, 3),
1000(74, 43, 3),
1001(73, 43, 1),
1002(72, 42, 4),
1003(71, 42, 6),
1004(70, 42, 3),
1005(69, 42, 2),
1006(68, 42, 1),
1007(81, 48, 1);
1008
1009-- --------------------------------------------------------
1010
1011--
1012-- Table structure for table `incident_lang`
1013--
1014
1015CREATE TABLE IF NOT EXISTS `incident_lang` (
1016 `id` bigint(20) unsigned NOT NULL,
1017 `incident_id` bigint(20) unsigned NOT NULL,
1018 `locale` varchar(10) DEFAULT NULL,
1019 `incident_title` varchar(255) DEFAULT NULL,
1020 `incident_description` longtext
1021) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Holds translations for report titles and descriptions';
1022
1023-- --------------------------------------------------------
1024
1025--
1026-- Table structure for table `incident_person`
1027--
1028
1029CREATE TABLE IF NOT EXISTS `incident_person` (
1030 `id` bigint(20) unsigned NOT NULL,
1031 `incident_id` bigint(20) unsigned DEFAULT NULL,
1032 `person_first` varchar(200) DEFAULT NULL,
1033 `person_last` varchar(200) DEFAULT NULL,
1034 `person_email` varchar(120) DEFAULT NULL,
1035 `person_phone` varchar(60) DEFAULT NULL,
1036 `person_ip` varchar(50) DEFAULT NULL,
1037 `person_date` datetime DEFAULT NULL
1038) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COMMENT='Holds information provided by people who submit reports';
1039
1040--
1041-- Dumping data for table `incident_person`
1042--
1043
1044INSERT INTO `incident_person` (`id`, `incident_id`, `person_first`, `person_last`, `person_email`, `person_phone`, `person_ip`, `person_date`) VALUES
1045(14, 2, '', '', '', NULL, NULL, '2015-06-05 23:31:09'),
1046(5, 20, '---', '---', 'divya@ushaidi.com', NULL, NULL, '2015-06-05 23:06:53'),
1047(6, 23, 'test', '---', 'divya@ushaidi.com', NULL, NULL, '2015-06-05 23:10:26'),
1048(10, 29, 'dana', 'scott', 'dana@scott.com', NULL, NULL, '2015-06-05 23:27:03'),
1049(11, 4, '', '', '', NULL, NULL, '2015-06-05 23:28:43'),
1050(12, 3, 'samplesample', '', '', NULL, NULL, '2015-06-05 23:29:44'),
1051(15, 1, '', '', '', NULL, NULL, '2015-06-05 23:32:50'),
1052(27, 45, 'samplesample', NULL, NULL, NULL, NULL, '2015-06-05 20:34:54'),
1053(26, 44, '---', '---', 'divya@ushaidi.com', NULL, NULL, '2015-06-05 23:06:48'),
1054(25, 43, 'test', 'test', 'divya@ushaidi.com', NULL, NULL, '2015-06-05 23:10:23'),
1055(24, 42, 'dana', 'dana', 'dana@scott.com', NULL, NULL, '2015-06-05 23:27:03');
1056
1057-- --------------------------------------------------------
1058
1059--
1060-- Table structure for table `layer`
1061--
1062
1063CREATE TABLE IF NOT EXISTS `layer` (
1064 `id` int(11) NOT NULL,
1065 `layer_name` varchar(255) DEFAULT NULL,
1066 `layer_url` varchar(255) DEFAULT NULL,
1067 `layer_file` varchar(100) DEFAULT NULL,
1068 `layer_color` varchar(20) DEFAULT NULL,
1069 `layer_visible` tinyint(4) NOT NULL DEFAULT '1'
1070) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Holds static layer information';
1071
1072-- --------------------------------------------------------
1073
1074--
1075-- Table structure for table `level`
1076--
1077
1078CREATE TABLE IF NOT EXISTS `level` (
1079 `id` int(11) unsigned NOT NULL,
1080 `level_title` varchar(200) DEFAULT NULL,
1081 `level_description` varchar(200) DEFAULT NULL,
1082 `level_weight` tinyint(4) NOT NULL
1083) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Stores level of trust assigned to reporters of the platform';
1084
1085--
1086-- Dumping data for table `level`
1087--
1088
1089INSERT INTO `level` (`id`, `level_title`, `level_description`, `level_weight`) VALUES
1090(1, 'SPAM + Delete', 'SPAM + Delete', -2),
1091(2, 'SPAM', 'SPAM', -1),
1092(3, 'Untrusted', 'Untrusted', 0),
1093(4, 'Trusted', 'Trusted', 1),
1094(5, 'Trusted + Verify', 'Trusted + Verify', 2);
1095
1096-- --------------------------------------------------------
1097
1098--
1099-- Table structure for table `location`
1100--
1101
1102CREATE TABLE IF NOT EXISTS `location` (
1103 `id` bigint(20) unsigned NOT NULL,
1104 `location_name` varchar(255) DEFAULT NULL,
1105 `country_id` int(11) NOT NULL DEFAULT '0',
1106 `latitude` double NOT NULL DEFAULT '0',
1107 `longitude` double NOT NULL DEFAULT '0',
1108 `location_visible` tinyint(4) NOT NULL DEFAULT '1',
1109 `location_date` datetime DEFAULT NULL
1110) ENGINE=MyISAM AUTO_INCREMENT=49 DEFAULT CHARSET=utf8 COMMENT='Stores location information';
1111
1112--
1113-- Dumping data for table `location`
1114--
1115
1116INSERT INTO `location` (`id`, `location_name`, `country_id`, `latitude`, `longitude`, `location_visible`, `location_date`) VALUES
1117(1, 'Guyana', 94, 2.912633, -58.487881, 1, '2015-06-05 23:32:50'),
1118(2, 'anothersample', 94, -1.2873, 36.821451, 1, '2015-06-05 23:31:08'),
1119(3, 'ABC, Guyana', 94, 7.287, -59.821, 1, '2015-06-05 23:29:44'),
1120(4, 'ABCABC, Guyana', 94, 2.55, -59.216667, 1, '2015-06-05 23:28:43'),
1121(47, 'anothersample', 0, -1.2873, 36.821451, 1, '2015-06-06 08:54:33'),
1122(29, 'ds lane', 94, 4.860416, -58.93018, 1, '2015-06-05 23:27:03'),
1123(23, 'ABC, Guyana', 75, 7.287, -59.821, 1, '2015-06-05 23:10:23'),
1124(20, 'ABC, Guyana', 75, 7.287, -59.821, 1, '2015-06-05 23:06:48'),
1125(46, 'ABCABC, Guyana', 0, 2.55, -59.216667, 1, '2015-06-06 08:54:33'),
1126(45, 'ABC, Guyana', 75, 7.287, -59.821, 1, '2015-06-06 08:54:33'),
1127(44, 'ABC, Guyana', 75, 7.287, -59.821, 1, '2015-06-06 08:54:33'),
1128(43, 'ABC, Guyana', 75, 7.287, -59.821, 1, '2015-06-06 08:54:33'),
1129(42, 'ds lane', 231, 4.860416, -58.93018, 1, '2015-06-06 08:54:33'),
1130(48, 'Guyana', 94, 2.912633, -58.487881, 1, '2015-06-06 08:54:33');
1131
1132-- --------------------------------------------------------
1133
1134--
1135-- Table structure for table `maintenance`
1136--
1137
1138CREATE TABLE IF NOT EXISTS `maintenance` (
1139 `allowed_ip` varchar(15) NOT NULL
1140) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Puts a site in maintenance mode if data exists in this table';
1141
1142-- --------------------------------------------------------
1143
1144--
1145-- Table structure for table `media`
1146--
1147
1148CREATE TABLE IF NOT EXISTS `media` (
1149 `id` bigint(20) unsigned NOT NULL,
1150 `location_id` bigint(20) unsigned DEFAULT NULL,
1151 `incident_id` bigint(20) unsigned DEFAULT NULL,
1152 `message_id` bigint(20) unsigned DEFAULT NULL,
1153 `badge_id` int(11) DEFAULT NULL,
1154 `media_type` tinyint(4) DEFAULT NULL COMMENT '1 - IMAGES, 2 - VIDEO, 3 - AUDIO, 4 - NEWS, 5 - PODCAST',
1155 `media_title` varchar(255) DEFAULT NULL,
1156 `media_description` longtext,
1157 `media_link` varchar(255) DEFAULT NULL,
1158 `media_medium` varchar(255) DEFAULT NULL,
1159 `media_thumb` varchar(255) DEFAULT NULL,
1160 `media_date` datetime DEFAULT NULL,
1161 `media_active` tinyint(4) NOT NULL DEFAULT '1'
1162) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores any media submitted along with a report';
1163
1164-- --------------------------------------------------------
1165
1166--
1167-- Table structure for table `message`
1168--
1169
1170CREATE TABLE IF NOT EXISTS `message` (
1171 `id` bigint(20) unsigned NOT NULL,
1172 `parent_id` bigint(20) DEFAULT '0',
1173 `incident_id` bigint(20) unsigned DEFAULT '0',
1174 `user_id` int(11) unsigned DEFAULT '0',
1175 `reporter_id` bigint(20) unsigned DEFAULT NULL,
1176 `service_messageid` varchar(100) DEFAULT NULL,
1177 `message_from` varchar(100) DEFAULT NULL,
1178 `message_to` varchar(100) DEFAULT NULL,
1179 `message` text,
1180 `message_detail` text,
1181 `message_type` tinyint(4) DEFAULT '1' COMMENT '1 - INBOX, 2 - OUTBOX (From Admin), 3 - DELETED',
1182 `message_date` datetime DEFAULT NULL,
1183 `message_level` tinyint(4) DEFAULT '0' COMMENT '0 - UNREAD, 1 - READ, 99 - SPAM',
1184 `latitude` double DEFAULT NULL,
1185 `longitude` double DEFAULT NULL
1186) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores tweets, emails and SMS messages';
1187
1188-- --------------------------------------------------------
1189
1190--
1191-- Table structure for table `openid`
1192--
1193
1194CREATE TABLE IF NOT EXISTS `openid` (
1195 `id` int(11) NOT NULL,
1196 `user_id` int(11) unsigned NOT NULL,
1197 `openid` varchar(255) NOT NULL,
1198 `openid_email` varchar(127) NOT NULL,
1199 `openid_server` varchar(255) NOT NULL,
1200 `openid_date` datetime NOT NULL
1201) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores users’ openid information';
1202
1203-- --------------------------------------------------------
1204
1205--
1206-- Table structure for table `opportunities`
1207--
1208
1209CREATE TABLE IF NOT EXISTS `opportunities` (
1210 `id` int(11) NOT NULL,
1211 `resource_available` varchar(75) NOT NULL,
1212 `pcv_name` varchar(75) NOT NULL,
1213 `available_from` datetime DEFAULT NULL,
1214 `available_until` datetime DEFAULT NULL,
1215 `contact` varchar(75) NOT NULL,
1216 `add_info` text
1217) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores resources available posted by user';
1218
1219-- --------------------------------------------------------
1220
1221--
1222-- Table structure for table `page`
1223--
1224
1225CREATE TABLE IF NOT EXISTS `page` (
1226 `id` int(11) NOT NULL,
1227 `page_title` varchar(255) NOT NULL,
1228 `page_description` longtext,
1229 `page_tab` varchar(100) NOT NULL,
1230 `page_active` tinyint(4) NOT NULL DEFAULT '0'
1231) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Stores user created pages';
1232
1233--
1234-- Dumping data for table `page`
1235--
1236
1237INSERT INTO `page` (`id`, `page_title`, `page_description`, `page_tab`, `page_active`) VALUES
1238(2, 'Resources for PCVs', '<h1></h1><ul><li><span style="color:rgb(131,140,149);font-family:''opensans-regular'', sans-serif;font-size:15px;line-height:18px;text-align:justify;background-color:rgb(255,255,255);">A simplistic guide to sign language to aid the PCVs in communicating with the students</span><br /></li><li><span style="color:rgb(131,140,149);font-family:''opensans-regular'', sans-serif;font-size:15px;line-height:18px;text-align:justify;background-color:rgb(255,255,255);">A prescribed syllabus and guidelines given by Peace Corps for the PCVs</span><br /></li></ul>', 'Resources', 1);
1239
1240-- --------------------------------------------------------
1241
1242--
1243-- Table structure for table `permissions`
1244--
1245
1246CREATE TABLE IF NOT EXISTS `permissions` (
1247 `id` int(11) NOT NULL,
1248 `name` varchar(32) NOT NULL
1249) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1 COMMENT='Stores permissions used for access control';
1250
1251--
1252-- Dumping data for table `permissions`
1253--
1254
1255INSERT INTO `permissions` (`id`, `name`) VALUES
1256(1, 'reports_view'),
1257(2, 'reports_edit'),
1258(4, 'reports_comments'),
1259(5, 'reports_download'),
1260(6, 'reports_upload'),
1261(7, 'messages'),
1262(8, 'messages_reporters'),
1263(9, 'stats'),
1264(10, 'settings'),
1265(11, 'manage'),
1266(12, 'users'),
1267(13, 'manage_roles'),
1268(16, 'reports_verify'),
1269(17, 'reports_approve'),
1270(18, 'admin_ui'),
1271(19, 'member_ui'),
1272(20, 'delete_all_reports');
1273
1274-- --------------------------------------------------------
1275
1276--
1277-- Table structure for table `permissions_roles`
1278--
1279
1280CREATE TABLE IF NOT EXISTS `permissions_roles` (
1281 `role_id` int(11) NOT NULL,
1282 `permission_id` int(11) NOT NULL
1283) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores permissions assigned to roles';
1284
1285--
1286-- Dumping data for table `permissions_roles`
1287--
1288
1289INSERT INTO `permissions_roles` (`role_id`, `permission_id`) VALUES
1290(1, 14),
1291(2, 1),
1292(2, 2),
1293(2, 4),
1294(2, 5),
1295(2, 6),
1296(2, 7),
1297(2, 8),
1298(2, 9),
1299(2, 10),
1300(2, 11),
1301(2, 12),
1302(2, 14),
1303(2, 15),
1304(2, 16),
1305(2, 17),
1306(2, 18),
1307(3, 1),
1308(3, 2),
1309(3, 4),
1310(3, 5),
1311(3, 6),
1312(3, 7),
1313(3, 8),
1314(3, 9),
1315(3, 10),
1316(3, 11),
1317(3, 12),
1318(3, 13),
1319(3, 14),
1320(3, 15),
1321(3, 16),
1322(3, 17),
1323(3, 18),
1324(3, 20),
1325(4, 19);
1326
1327-- --------------------------------------------------------
1328
1329--
1330-- Table structure for table `plugin`
1331--
1332
1333CREATE TABLE IF NOT EXISTS `plugin` (
1334 `id` int(11) unsigned NOT NULL,
1335 `plugin_name` varchar(100) NOT NULL,
1336 `plugin_url` varchar(250) DEFAULT NULL,
1337 `plugin_description` text,
1338 `plugin_priority` tinyint(4) DEFAULT '0',
1339 `plugin_active` tinyint(4) DEFAULT '0',
1340 `plugin_installed` tinyint(4) DEFAULT '0'
1341) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Holds a list of all plugins installed on a deployment';
1342
1343--
1344-- Dumping data for table `plugin`
1345--
1346
1347INSERT INTO `plugin` (`id`, `plugin_name`, `plugin_url`, `plugin_description`, `plugin_priority`, `plugin_active`, `plugin_installed`) VALUES
1348(1, 'clickatell', NULL, NULL, 0, 0, 0),
1349(2, 'downloadreports', NULL, NULL, 0, 1, 1),
1350(3, 'frontlinesms', NULL, NULL, 0, 0, 0),
1351(4, 'sharing', NULL, NULL, 0, 0, 0),
1352(5, 'smssync', NULL, NULL, 0, 0, 0);
1353
1354-- --------------------------------------------------------
1355
1356--
1357-- Table structure for table `private_message`
1358--
1359
1360CREATE TABLE IF NOT EXISTS `private_message` (
1361 `id` int(11) NOT NULL,
1362 `parent_id` int(11) NOT NULL DEFAULT '0',
1363 `user_id` int(11) unsigned NOT NULL,
1364 `from_user_id` int(11) DEFAULT '0',
1365 `private_subject` varchar(255) NOT NULL,
1366 `private_message` text NOT NULL,
1367 `private_message_date` datetime NOT NULL,
1368 `private_message_new` tinyint(4) NOT NULL DEFAULT '1'
1369) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores private messages sent between Members';
1370
1371-- --------------------------------------------------------
1372
1373--
1374-- Table structure for table `rating`
1375--
1376
1377CREATE TABLE IF NOT EXISTS `rating` (
1378 `id` bigint(20) unsigned NOT NULL,
1379 `user_id` int(11) unsigned DEFAULT '0',
1380 `incident_id` bigint(20) unsigned DEFAULT NULL,
1381 `comment_id` bigint(20) unsigned DEFAULT NULL,
1382 `rating` tinyint(4) DEFAULT '0',
1383 `rating_ip` varchar(100) DEFAULT NULL,
1384 `rating_date` datetime DEFAULT NULL
1385) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Stores credibility ratings for reports and comments';
1386
1387--
1388-- Dumping data for table `rating`
1389--
1390
1391INSERT INTO `rating` (`id`, `user_id`, `incident_id`, `comment_id`, `rating`, `rating_ip`, `rating_date`) VALUES
1392(1, 0, 29, NULL, 1, '127.0.0.1', '2015-08-22 02:58:44'),
1393(2, 3, 29, NULL, 1, '127.0.0.1', '2015-08-24 07:22:31');
1394
1395-- --------------------------------------------------------
1396
1397--
1398-- Table structure for table `reporter`
1399--
1400
1401CREATE TABLE IF NOT EXISTS `reporter` (
1402 `id` bigint(20) unsigned NOT NULL,
1403 `location_id` bigint(20) unsigned DEFAULT NULL,
1404 `user_id` int(11) unsigned DEFAULT NULL,
1405 `service_id` int(10) unsigned DEFAULT NULL,
1406 `level_id` int(11) unsigned DEFAULT NULL,
1407 `service_account` varchar(255) DEFAULT NULL,
1408 `reporter_first` varchar(200) DEFAULT NULL,
1409 `reporter_last` varchar(200) DEFAULT NULL,
1410 `reporter_email` varchar(120) DEFAULT NULL,
1411 `reporter_phone` varchar(60) DEFAULT NULL,
1412 `reporter_ip` varchar(50) DEFAULT NULL,
1413 `reporter_date` datetime DEFAULT NULL
1414) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Information on report submitters via email, twitter and sms';
1415
1416-- --------------------------------------------------------
1417
1418--
1419-- Table structure for table `roles`
1420--
1421
1422CREATE TABLE IF NOT EXISTS `roles` (
1423 `id` int(11) unsigned NOT NULL,
1424 `name` varchar(32) NOT NULL,
1425 `description` varchar(255) NOT NULL,
1426 `access_level` tinyint(4) NOT NULL DEFAULT '0'
1427) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='Defines user access levels and privileges on a deployment';
1428
1429--
1430-- Dumping data for table `roles`
1431--
1432
1433INSERT INTO `roles` (`id`, `name`, `description`, `access_level`) VALUES
1434(1, 'login', 'Login privileges, granted after account confirmation', 0),
1435(2, 'admin', 'Administrative user, has access to almost everything.', 90),
1436(3, 'superadmin', 'Super administrative user, has access to everything.', 100),
1437(4, 'member', 'Regular user with access only to the member area', 10);
1438
1439-- --------------------------------------------------------
1440
1441--
1442-- Table structure for table `roles_users`
1443--
1444
1445CREATE TABLE IF NOT EXISTS `roles_users` (
1446 `user_id` int(11) unsigned NOT NULL,
1447 `role_id` int(11) unsigned NOT NULL
1448) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores roles assigned to users registered on a deployment';
1449
1450--
1451-- Dumping data for table `roles_users`
1452--
1453
1454INSERT INTO `roles_users` (`user_id`, `role_id`) VALUES
1455(1, 1),
1456(1, 2),
1457(1, 3),
1458(2, 1),
1459(2, 4),
1460(3, 1),
1461(3, 4);
1462
1463-- --------------------------------------------------------
1464
1465--
1466-- Table structure for table `scheduler`
1467--
1468
1469CREATE TABLE IF NOT EXISTS `scheduler` (
1470 `id` int(10) unsigned NOT NULL,
1471 `scheduler_name` varchar(100) NOT NULL,
1472 `scheduler_last` int(10) unsigned NOT NULL DEFAULT '0',
1473 `scheduler_weekday` smallint(6) NOT NULL DEFAULT '-1',
1474 `scheduler_day` smallint(6) NOT NULL DEFAULT '-1',
1475 `scheduler_hour` smallint(6) NOT NULL DEFAULT '-1',
1476 `scheduler_minute` smallint(6) NOT NULL,
1477 `scheduler_controller` varchar(100) NOT NULL,
1478 `scheduler_active` tinyint(4) NOT NULL DEFAULT '1'
1479) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Stores schedules for cron jobs';
1480
1481--
1482-- Dumping data for table `scheduler`
1483--
1484
1485INSERT INTO `scheduler` (`id`, `scheduler_name`, `scheduler_last`, `scheduler_weekday`, `scheduler_day`, `scheduler_hour`, `scheduler_minute`, `scheduler_controller`, `scheduler_active`) VALUES
1486(1, 'Feeds', 1442242939, -1, -1, -1, 0, 's_feeds', 1),
1487(2, 'Alerts', 1433524755, -1, -1, -1, -1, 's_alerts', 1),
1488(3, 'Email', 1433524102, -1, -1, -1, 0, 's_email', 1),
1489(4, 'Twitter', 1433524102, -1, -1, -1, 0, 's_twitter', 1),
1490(5, 'Cleanup', 1433524102, -1, -1, -1, 0, 's_cleanup', 1);
1491
1492-- --------------------------------------------------------
1493
1494--
1495-- Table structure for table `scheduler_log`
1496--
1497
1498CREATE TABLE IF NOT EXISTS `scheduler_log` (
1499 `id` bigint(20) unsigned NOT NULL,
1500 `scheduler_id` int(10) unsigned NOT NULL,
1501 `scheduler_status` varchar(20) DEFAULT NULL,
1502 `scheduler_date` int(10) unsigned NOT NULL
1503) ENGINE=MyISAM AUTO_INCREMENT=99 DEFAULT CHARSET=utf8 COMMENT='Stores a log of scheduler actions';
1504
1505--
1506-- Dumping data for table `scheduler_log`
1507--
1508
1509INSERT INTO `scheduler_log` (`id`, `scheduler_id`, `scheduler_status`, `scheduler_date`) VALUES
1510(1, 1, '200', 1433523514),
1511(2, 2, '200', 1433523515),
1512(3, 3, '200', 1433523515),
1513(4, 4, '200', 1433523515),
1514(5, 5, '200', 1433523515),
1515(6, 1, '200', 1433524102),
1516(7, 2, '200', 1433524102),
1517(8, 3, '200', 1433524102),
1518(9, 4, '200', 1433524102),
1519(10, 5, '200', 1433524102),
1520(11, 2, '200', 1433524324),
1521(12, 2, '200', 1433524698),
1522(13, 2, '200', 1433524755),
1523(14, 1, '200', 1433527375),
1524(15, 1, '200', 1433532658),
1525(16, 1, '200', 1433534405),
1526(17, 1, '200', 1433542612),
1527(18, 1, '200', 1433545613),
1528(19, 1, '200', 1433580847),
1529(20, 1, '200', 1433584821),
1530(21, 1, '200', 1433788382),
1531(22, 1, '200', 1433977238),
1532(23, 1, '200', 1434062187),
1533(24, 1, '200', 1434064206),
1534(25, 1, '200', 1434067306),
1535(26, 1, '200', 1434354919),
1536(27, 1, '200', 1434355216),
1537(28, 1, '200', 1434362048),
1538(29, 1, '200', 1434362879),
1539(30, 1, '200', 1434366603),
1540(31, 1, '200', 1434380823),
1541(32, 1, '200', 1434398247),
1542(33, 1, '200', 1434832060),
1543(34, 1, '200', 1434868636),
1544(35, 1, '200', 1434871024),
1545(36, 1, '200', 1434882175),
1546(37, 1, '200', 1434891893),
1547(38, 1, '200', 1434904425),
1548(39, 1, '200', 1434949249),
1549(40, 1, '200', 1434974078),
1550(41, 1, '200', 1434976343),
1551(42, 1, '200', 1434984546),
1552(43, 1, '200', 1435061401),
1553(44, 1, '200', 1435116098),
1554(45, 1, '200', 1435118712),
1555(46, 1, '200', 1435311595),
1556(47, 1, '200', 1435582902),
1557(48, 1, '200', 1436495526),
1558(49, 1, '200', 1436497394),
1559(50, 1, '200', 1436505428),
1560(51, 1, '200', 1436609307),
1561(52, 1, '200', 1438175407),
1562(53, 1, '200', 1438276832),
1563(54, 1, '200', 1439465915),
1564(55, 1, '200', 1439467979),
1565(56, 1, '200', 1439706643),
1566(57, 1, '200', 1439709420),
1567(58, 1, '200', 1439719484),
1568(59, 1, '200', 1439725378),
1569(60, 1, '200', 1439784654),
1570(61, 1, '200', 1439790962),
1571(62, 1, '200', 1439792382),
1572(63, 1, '200', 1439809245),
1573(64, 1, '200', 1439891953),
1574(65, 1, '200', 1439968501),
1575(66, 1, '200', 1439972122),
1576(67, 1, '200', 1439977029),
1577(68, 1, '200', 1439983342),
1578(69, 1, '200', 1439986940),
1579(70, 1, '200', 1440146579),
1580(71, 1, '200', 1440147643),
1581(72, 1, '200', 1440159011),
1582(73, 1, '200', 1440162240),
1583(74, 1, '200', 1440211154),
1584(75, 1, '200', 1440212456),
1585(76, 1, '200', 1440222395),
1586(77, 1, '200', 1440223777),
1587(78, 1, '200', 1440398351),
1588(79, 1, '200', 1440400164),
1589(80, 1, '200', 1440416242),
1590(81, 1, '200', 1440418180),
1591(82, 1, '200', 1440580487),
1592(83, 1, '200', 1440583279),
1593(84, 1, '200', 1440589269),
1594(85, 1, '200', 1440590741),
1595(86, 1, '200', 1440595186),
1596(87, 1, '200', 1440678690),
1597(88, 1, '200', 1441623135),
1598(89, 1, '200', 1441626926),
1599(90, 1, '200', 1442133071),
1600(91, 1, '200', 1442212304),
1601(92, 1, '200', 1442214050),
1602(93, 1, '200', 1442222106),
1603(94, 1, '200', 1442225204),
1604(95, 1, '200', 1442229640),
1605(96, 1, '200', 1442232153),
1606(97, 1, '200', 1442242530),
1607(98, 1, '200', 1442242939);
1608
1609-- --------------------------------------------------------
1610
1611--
1612-- Table structure for table `service`
1613--
1614
1615CREATE TABLE IF NOT EXISTS `service` (
1616 `id` int(10) unsigned NOT NULL,
1617 `service_name` varchar(100) DEFAULT NULL,
1618 `service_description` varchar(255) DEFAULT NULL,
1619 `service_url` varchar(255) DEFAULT NULL,
1620 `service_api` varchar(255) DEFAULT NULL
1621) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Info on input sources i.e SMS, Email, Twitter';
1622
1623--
1624-- Dumping data for table `service`
1625--
1626
1627INSERT INTO `service` (`id`, `service_name`, `service_description`, `service_url`, `service_api`) VALUES
1628(1, 'SMS', 'Text messages from phones', NULL, NULL),
1629(2, 'Email', 'Email messages sent to your deployment', NULL, NULL),
1630(3, 'Twitter', 'Tweets tweets tweets', 'http://twitter.com', NULL);
1631
1632-- --------------------------------------------------------
1633
1634--
1635-- Table structure for table `sessions`
1636--
1637
1638CREATE TABLE IF NOT EXISTS `sessions` (
1639 `session_id` varchar(127) NOT NULL,
1640 `last_activity` int(10) unsigned NOT NULL,
1641 `data` text NOT NULL
1642) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores session information';
1643
1644--
1645-- Dumping data for table `sessions`
1646--
1647
1648INSERT INTO `sessions` (`session_id`, `last_activity`, `data`) VALUES
1649('ck73g64resd6aeh9bo140riuf2', 1442243128, 'WTrNRdvrEd9MaztFBVFo0nO90BqLX8T18UaOfIaEhj06ZhHsLRi0lSiODSYXV+xzWFOQuiTi1o/uPngCg3mRJbdyxiDgFbVTqDyL95ZwSj1fjgresAbk26h2QYcBllLHmN+9OapOKj192veStvVgisq6O+5n2+9vZDtUeHpBKuL8LbyfxqAn9lKVH5pr9KioAUoLu47HXV1fyHBS2dc5jHjiKAhSbG2rkIczkTUgjvcI6TQoKXYgioiYTBzQEDYVFkzZCtI6ulqp0oXln7j2WzCSaAHE0Y3UBbKIGjwi99bqDi3DkljfGU8y6q9ypqWA3YUtNvhDX+D4YEPbZ/NxMXGSUYiyBCOM4EyMf5yH/QIGHDunMcKAtt5PVr3xOFwKTD4yRkfcoFVKNqTf6otgc5dAjAo2ArbrcnpkL+NufS9FiCAjBjnnbpfOWhtR1RuB5W1kYCbVBG2qxlprNRs7UXg='),
1650('69ifi13dan9qbf5tf5lansjmn5', 1442246283, 'FPoWgwzXEB9lj5sU/vExNDl51KZ787b74UbZFrNWHjYI+aw1/KxGP9HgKif1B0M1xjDfdXdnO3Bua8sDNMdOOpXO78sYHRQfuzfyplMIq8eske1ooKIKATrlXETgTcTg6YHW+XrW911OcFL39cZ6WZhUAGLjrhvBtp+pKbzotIEMLL+2bul5M4bdL/hm9PHhGQK3NH1pnXMvNRnSneMKvrh/bj12jPWWJSuN41lY30uoLmV/+nuK+AaFD8aaTmKG4dxOMTmRiC2PdovP53EvtupyQQxehEZWp8XTJdDwTfRDubtfyRKilKe+PgD+OpVjiPz/RSxmwJmzvHQsJUOYqHnrQmupFflYGvIE0xFxveo6w8pOU1vzR0IPfIlm0u7zIRI9eWDIS2ihuP8WONaZh5WxqEoFii0gqq3bi28p/waBqi1s3FvZt3AtQxrLAflqoQi/aBsO70klV4llW4fxb6Q19rGsOlogK64+vVCNHY4MZ81azzX8PZT5TdXT4JdYrHxSgnRKAUDgGBm8HDC2HXY4DgCJSCvjVuWBaazwUtmbdoYU6MOZB9qo0oNj/5QLe8YC2qZNsAMFMtR4g682LokyB7+zD3Tfky+9JFkROknOxeNIQw+y2b8Kvjd4FAPoVQmmC+mEhtEag7MzBib96rmXYtf7NHbqbOwbb/FGNn7y57CZ/Jd+7uE9b1zIL/f2U5Ncoit3wjvyfiEzAy9nJrIopSXTWkMxM00ivdiU6TilbdWWOuv7icBohPk0QdEYWTexQvAz+nFu7794518sR75FWtiODTC5jjdz4rus8CRQfhDZP9/Z22D5MK1qAQuxfmxdvpXMjJxFCGXCs0p5S3CSs4MDenD1JigW2aKsNLux9NdU6HUSvDy3qrrDqP5MBv5REP0mAv1zB7Djs+Ai8KtwMfh/50sdjSwFGBh1f1wk/1M9PK2f9zxUdqFII6SnEl0/MXLuc/xLzDv5g3SjmYxgC5aYl3T5VOhckq+lW6J7RKxKIX7urO3AKGdRjVoKmMMLeTGIlJgNe/+ol9NeOXrGuVsc+SDGksqnW37fRAJBwaU3dBrpAx835nH88WRNf357ezjsztGFpMuBbiyhNLLBlaLbsIiEjXE/aeOXSPb8k1kb6uABTvwkH806TXG3nfc0MjBgzWGSB/wyiHy9Lx667jKvJEeY6MeWkgMnCg6yO3miOLA/CDnetWe5YkgXTHvcyseqIElFWnwCbxkTKKhodO3RgqYDRS+3ND/lZp/FjVRU5DTiufarkZGgypVWDB9b6Cb3KVa7ehPj6uLcowYhWB2ttpAKcSgVB1T/V4VBAcKIsqlB4hPKEAVlOCVRVw2397w79LDKXrWq61SG8IUoV2QD1Q9UV8w6c3I0gB/R3QctdoRChwyTosWTblELTvn51eeZobo6DFFLuGg1wi/kc/DzMfhpDX0EXucWtlWA2pW++Uw2CL7MJkUU4GwdU5VnCMvaUBm7dCthjxAYw7yElw7YnrRnkIkwzF0SV//XxuXr40A='),
1651('9eascq6mmvieofc579pjrf3oj4', 1442242529, '6mfGsleiN05jNDqOMWks71vfH3BzZt7fSZQFiU8NgGUIezrMlqnYfTRBx4m6AFLlAGzF6f2F47NG7iKI2Jw6LD5mKEoyBaVDApZb9e5ntZttIjpGS185bc4D2wY+m1FYR7xdtUTee1GLeY9y0EU+uFV6H2sfyk6ZG7B+0qDz4lHd/WMYcw2/rpkGwwJ5H4vI/IgGGTA8/5ljw6kkCb5giZdBDVvpM3WCcI65lQ4gNnFGHmggK3ldhEhnzU5pEUUyhpWUy5DozoSkjAeU18+qbCS+sV4sJHudKCIlTgN24wMmXxZdAicpDqHrRJfv1OQgKo1BKfbEZ6TGR+luFMQ/KNGCQ15GqOopt0aiDP/Jro6gS4vI5goCqiaiq19IEyola0w/YoGW2to5j7pNwofnrh9XNEAv91I8P0Yzmsclf2pqUwwmp/HFpyE3PWAAaufbD8UQYCaKpMP6+T7k+lw2IZM='),
1652('f6pq149kfpph1rmb03v37qn4c7', 1442242911, 'a/J9toHuRc2GHdDdVfQdYLrFiUGFfLjRp78AhJtt6ll2kzQQp8FL8udZV2yxCZa3hmVSHt/VZkKqdrUcHLK8hyl45stHolJ2DJAo82yUIoQMaEoSiAV48bubZzM+P6vWmRjrlE/8ypXPLapRvjCsSo8rQUzc99q+4nvxOPZKshZrh7O1yxbfEg7C+OUj1Zg7ZRtSQFO56jNhimL6+95wnXkLh4SgyJuMlwlMyThwhOsvoWVLdHs8csQoI1I+PtwfGbBC+5+E2cvb5D/Y9wZaeweuXM06MpLEaZXnxBZPAOf8nEvW44HKWqT6T/PlQEuXE3SgRmDX8X6Qew+UtDkxpEJkTNcUpz7NDgXF4V1pfA5w8auGnhMwUHL8ja1FZM4UWK/3qMVOO1/rKz/32EV9xZf+Nr8EQa13wTez2Dr4j8NKkc57awAwnuu5KWyaK+tux65UD/3CXc9WvRhX1DR3+PKw55vzy48QRcfLSyNyKjaTuLVcmyrbHXBv7EDNUCSUhnwhD3NKJlqP54wX5KeK1cYp71zrVegZF8Ftnke/ZRaDhEQS8chJH4PKuQ70JwuAYijpO3g+ZknjQWhf2z40K7wD/XNllz7HtwEj+CKflnvi/HfcIFiLj6TQd+uHyHPf547w5Z/C3rs8X5S2muoxubswtTLFmfnqB539wZzE0qvlg3wKME9NsyAehyH0AXijlXUM5z3ECgBzoi9Bl2MHxf7UaW/GWdi7QPsDH1N6yX53fBe1YfhLBH+sBh1TyxoBtdQEf2NW0zFzCW6ZrcsXqE+JYZejaqUzsGl/Y8PthVNnSlJX1cszsYuhgmee9PxeeA/EXctu8+H+BD6+1Tp3Oo/L3olhe18EgW1G2qEW0zXh1riMbb7eDro0q3tgqX7G9ZkZ7sBNleaNgy/G4ydcSASayS09JlnQ9GXSIvkFmUqwi5Xpxp919YOSElOPwCS3fpnMgI1nwl3uKq5J3WGqptUBwapP6V9fejo+aOVVFdpcSA4s5ns5yfkdzy/rUbqvz7CaDBA/sT0lWIAvp3VDle3zpt+vHOlo/siEd6wTUT/ejgB14SU71FAB932aY5udBH3N9CPYSvfCt6LH3iVvJQ3ST7yxH/KKhIV4Zx7ReX9/Vgf7nW58aCq7XcY29Ch4V2Q5mbF7jp8XtE9uNhI3R8ddo4KwC4+li7/huMawWd/dz+ytO1VDy75MwfLmrKAqHVqii5C01v3E77YncmfQFWipw+ESXSbR079C8J+e9lHbsWHNFxVxB8fC2y4wTt/lFNxWwINyIc1pohnasK7tJjmvqA1AJmEeinTHxg0fUg431n6P/hb1n25Z20reU4rBJEkGL1Ap968kQJru975eYT53nAHbJXSCiPZZvsPHknIirbw6kl6M8TwTYkgjlb/ZiSzNqO2Fh76wHFZPJW47iKwvH88KlzHULjP0vMnjvGPyPCmc66D4vdjbHNTRzKepXLIIg7BUQW81b9YU0caT0xn6cHaMe54N/bAtPbsEVIeNK8Wsfdg='),
1653('legu0irptb7rtk03476ckrm726', 1442246330, 'vH9As1zjvdpXRHW2kun/k2yq+rKZHq6ZSkXj0XPpgl201EJwFv78JFlLmfAfOceZCRvHsVMBwXa3FLmz4r5EwUSrDy5l6ocUX5RI8AqFLagTxnSWFREtwmCDbRTL7Esbvr8KAmiOjtTrpZhjB9iAFhURCjZvT5U4oFJZBe3Uo81ogNdsHW3NEl7jnJs1MCR0GsjbIMuwqUWEsLdWsblZ+a0dqS3WKCjw/ICGH++G7l1CmTc+M2xZ8ybIfZVyvBTfHd1aHdHU1t52173V72SOJPESOBy1bAbsfnW9QnPqulRNifUmoT1uamw133j1jf5agFGDAkZovO7el2kVzOSTyQiG2oNraW7kcVK125CphMK9v+2geSdwxQdKoUsC5jh3fEutnp3uXLOyVi8oLSItl8zsMTe70kcLYKPcMRVdAWM9U+Py+JhQ5m8BXPShvVXpdA6/BhYvpZ2mFG+ycifeFl9qfjmg6nfJ9c8jSdoXbgaOijYMeHdPOsFQC8lQ7angW9DIa1dVEagVWry+WQ0Ogkk9GgzqgVQJKwjMiTysnqtM9GkYdqlln1c2Nl5XLa8YD5NmQ+HMEFGOAVzh5jR8kttXXF/5/ubceYeqvM0yYig3LRxwWyiFVStbAJQPdYA7eldZ1r5l7dWWI0b8vi2qxelsSGxZoqPiwPeSyl2jR7yUzVNaZpd4MzmW7hwNPAmjcWg1cQ6XZbYd4vO13kaZbZpcML6F3J3TSw0W+GdjGK79SLmV5UuIUcTrcRcaTM/E3DK2TTSE5x7iG3mYOvebkRSuvKOzWOOnafL776TGbqDIR7BcOg/wV335vRTY7nuXBaSzR6KOfETFlh7A7moQVGD/PivTiOMR+GZDVYYJsDC9ZelDaEx5lpkh++BDZwPoqs4heuYp3FyYNiCCau/0ilNbpKdaNVSSKu5B6IfMhQYJt/DNiZ3P0csOL7Iek58gpnjA7EPYM6zIWzKbKjSh5D5xYtAzSiKNRFWNpBF2Q5vYSyNJAjhTvSGkcshE5aEEmZHJTorWyMqUJBNUhnNWlClJPxk47b36Fs0y95kITnr5wDcjSj9ixXdR/3zjU3ZUD26fE74j2in/Mbb11NVKhC0zr3oNsbwstpIWd4RCHQR6u4i9l4rMmATR3msredYSITBiU3SwzUmn3Jzu2+11bPaf7rDhBbMs0gZA13u8ne7JlIjBjy1PsdP++jTnONEHuK/tntErUwVAhP89zwxR9w5/pQB5wzIPhB16xjyqrGu825zUB1xljKXJbcnAWEPOWtcN5oOaGoRnUoCxcBsbs1ZQsUCf5sQeG2AfZAKmN9NK9LMTw0K+U4juJvYlwXiXMIQWM/iFIBa3gF4Q3Vw6Po4V8T/wX+yxAzzJnJFUVlMWkQnp6DdGowon+v7rg8ZTr6iCQhRiDt7utZo8gH9S1iohM4bEuy36Q0kmkwFNd7T+gfhToxL7N5HO4LYw1dPIk3xq8v1HoeY0E6Y4IVWHdehdkya3u7nvoH1p+/Hog0rEqw7Y74M=');
1654
1655-- --------------------------------------------------------
1656
1657--
1658-- Table structure for table `settings`
1659--
1660
1661CREATE TABLE IF NOT EXISTS `settings` (
1662 `id` int(11) unsigned NOT NULL,
1663 `key` varchar(100) NOT NULL DEFAULT '' COMMENT 'Unique identifier for the configuration parameter',
1664 `value` text COMMENT 'Value for the settings parameter'
1665) ENGINE=MyISAM AUTO_INCREMENT=81 DEFAULT CHARSET=utf8;
1666
1667--
1668-- Dumping data for table `settings`
1669--
1670
1671INSERT INTO `settings` (`id`, `key`, `value`) VALUES
1672(1, 'site_name', 'Guyana Deaf Community'),
1673(2, 'site_tagline', 'Education for all.'),
1674(3, 'site_banner_id', NULL),
1675(4, 'site_email', 'ushahidiguyana@gmail.com'),
1676(5, 'site_key', NULL),
1677(6, 'site_language', 'en_US'),
1678(7, 'site_style', 'default'),
1679(8, 'site_timezone', '0'),
1680(9, 'site_contact_page', '1'),
1681(10, 'site_help_page', '1'),
1682(11, 'site_message', ''),
1683(12, 'site_copyright_statement', ''),
1684(13, 'site_submit_report_message', ''),
1685(14, 'allow_reports', '1'),
1686(15, 'allow_comments', '1'),
1687(16, 'allow_feed', '1'),
1688(17, 'allow_stat_sharing', '1'),
1689(18, 'allow_clustering', '1'),
1690(19, 'cache_pages', '0'),
1691(20, 'cache_pages_lifetime', '1800'),
1692(21, 'private_deployment', '0'),
1693(22, 'default_map', 'google_physical'),
1694(23, 'default_map_all', 'CC0000'),
1695(24, 'default_map_all_icon_id', NULL),
1696(25, 'api_google', ''),
1697(26, 'api_live', 'Apumcka0uPOF2lKLorq8aeo4nuqfVVeNRqJjqOcLMJ9iMCTsnMsNd9_OvpA8gR0i'),
1698(27, 'api_akismet', ''),
1699(28, 'default_country', '94'),
1700(29, 'multi_country', '0'),
1701(30, 'default_city', 'nairobi'),
1702(31, 'default_lat', '4.860416'),
1703(32, 'default_lon', '-58.93018000000001'),
1704(33, 'default_zoom', '6'),
1705(34, 'items_per_page', '5'),
1706(35, 'items_per_page_admin', '20'),
1707(36, 'sms_provider', ''),
1708(37, 'sms_no1', NULL),
1709(38, 'sms_no2', NULL),
1710(39, 'sms_no3', NULL),
1711(40, 'google_analytics', ''),
1712(41, 'twitter_hashtags', NULL),
1713(42, 'blocks', 'news_block|reports_block'),
1714(43, 'blocks_per_row', '2'),
1715(44, 'date_modify', '2015-08-16 07:42:13'),
1716(45, 'stat_id', '69557'),
1717(46, 'stat_key', 'f44a5272a3c4354d8bbb28ea6b6ed0'),
1718(47, 'email_username', 'ushahidiguyana@gmail.com'),
1719(48, 'email_password', 'sys15gsoc'),
1720(49, 'email_port', '993'),
1721(50, 'email_host', 'imap.gmail.com'),
1722(51, 'email_servertype', 'imap'),
1723(52, 'email_ssl', '1'),
1724(53, 'ftp_server', NULL),
1725(54, 'ftp_user_name', NULL),
1726(55, 'alerts_email', 'ushahidiguyana@gmail.com'),
1727(57, 'facebook_appid', NULL),
1728(58, 'facebook_appsecret', NULL),
1729(59, 'db_version', '117'),
1730(60, 'ushahidi_version', '2.7.3'),
1731(61, 'allow_alerts', '1'),
1732(62, 'require_email_confirmation', '0'),
1733(63, 'manually_approve_users', '0'),
1734(64, 'enable_timeline', '1'),
1735(65, 'feed_geolocation_user', ''),
1736(66, 'allow_feed_category', '0'),
1737(67, 'dashboard_redirect', '1'),
1738(68, 'enable_report_notifications', '0'),
1739(69, 'enable_media_filters', '1'),
1740(70, 'enable_chronological_filter', '1'),
1741(71, 'enable_category_filters', '1'),
1742(72, 'enable_category_filters_showhide', '1'),
1743(73, 'show_reporting_options', '1'),
1744(74, 'show_submit_report_tab', '1'),
1745(75, 'enable_filter_search', '0'),
1746(76, 'allow_opportunities', '1'),
1747(77, 'forgot_password_secret', 'hRDzLYhX]u)rnh!`tU%T~j?$*vG;%WhR,nG$9#t95#NuJ%Qeox(Rn62I.&;QwPe&'),
1748(78, 'scheduler_lock', '1442246462'),
1749(79, 'timeline_graph', 'line'),
1750(80, 'timeline_point_label', '0');
1751
1752-- --------------------------------------------------------
1753
1754--
1755-- Table structure for table `user_tokens`
1756--
1757
1758CREATE TABLE IF NOT EXISTS `user_tokens` (
1759 `id` int(11) unsigned NOT NULL,
1760 `user_id` int(11) unsigned NOT NULL,
1761 `user_agent` varchar(40) NOT NULL,
1762 `token` varchar(64) NOT NULL,
1763 `created` int(10) unsigned NOT NULL,
1764 `expires` int(10) unsigned NOT NULL
1765) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='Stores browser tokens assigned to users';
1766
1767--
1768-- Dumping data for table `user_tokens`
1769--
1770
1771INSERT INTO `user_tokens` (`id`, `user_id`, `user_agent`, `token`, `created`, `expires`) VALUES
1772(8, 3, '81695bebd98104d5fbc4db1f011a6b2704476bce', 'TcZyUtUj1eoTTNlG6BpwEGH1ICbtMGSL', 1440398609, 1441608209),
1773(7, 2, '81695bebd98104d5fbc4db1f011a6b2704476bce', 'VAITMBjB23CqWa45AFbC2qmstp8lnSs5', 1440222504, 1441432104),
1774(6, 1, '81695bebd98104d5fbc4db1f011a6b2704476bce', 'xJxCZhY0lgj1z1k6f3yZtuqFX50LneQv', 1439809237, 1441018837);
1775
1776-- --------------------------------------------------------
1777
1778--
1779-- Table structure for table `users`
1780--
1781
1782CREATE TABLE IF NOT EXISTS `users` (
1783 `id` int(11) unsigned NOT NULL,
1784 `riverid` varchar(128) NOT NULL,
1785 `name` varchar(200) DEFAULT NULL,
1786 `email` varchar(127) NOT NULL,
1787 `username` varchar(100) NOT NULL DEFAULT '',
1788 `password` char(50) NOT NULL,
1789 `logins` int(10) unsigned NOT NULL DEFAULT '0',
1790 `last_login` int(10) unsigned DEFAULT NULL,
1791 `notify` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Flag incase admin opts in for email notifications',
1792 `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
1793 `color` varchar(6) NOT NULL DEFAULT 'FF0000',
1794 `code` varchar(30) DEFAULT NULL,
1795 `confirmed` tinyint(1) NOT NULL DEFAULT '0',
1796 `public_profile` tinyint(1) NOT NULL DEFAULT '1',
1797 `approved` tinyint(1) NOT NULL DEFAULT '1',
1798 `needinfo` tinyint(1) NOT NULL DEFAULT '0',
1799 `report_notifications` tinyint(4) DEFAULT '0',
1800 `last_reports_view` datetime DEFAULT NULL
1801) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Stores registered users’ information';
1802
1803--
1804-- Dumping data for table `users`
1805--
1806
1807INSERT INTO `users` (`id`, `riverid`, `name`, `email`, `username`, `password`, `logins`, `last_login`, `notify`, `updated`, `color`, `code`, `confirmed`, `public_profile`, `approved`, `needinfo`, `report_notifications`, `last_reports_view`) VALUES
1808(1, '', 'Administrator', 'divyaupadhyay42@gmail.com', 'admin', '7f1ef9c4347d08e5b78e0e13374713d7d482cce3f74927531d', 32, 1442212861, 0, '2015-09-14 06:49:48', 'FF0000', NULL, 1, 0, 1, 0, 0, '2015-09-14 06:49:48'),
1809(2, '', 'Rohit Kashyap', 'rkgudboy@gmail.com', '1078826600', 'c7631f81440b635e358e10fed1e88df06ea254f64fcbfe59f5', 1, 1440222504, 0, '2015-08-22 05:56:25', 'FF0000', NULL, 0, 1, 1, 0, 0, '2015-08-22 05:56:25'),
1810(3, '', 'Swapnil Palash', 'swapnil.genius@gmail.com', '1122032155', '71fe84afb19330541e70b89eb5d4ac7ef7db89d9b6acc17267', 9, 1442243262, 0, '2015-09-14 15:58:42', 'FF0000', NULL, 0, 1, 1, 0, 0, '2015-09-14 15:58:42');
1811
1812-- --------------------------------------------------------
1813
1814--
1815-- Table structure for table `verified`
1816--
1817
1818CREATE TABLE IF NOT EXISTS `verified` (
1819 `id` bigint(20) unsigned NOT NULL,
1820 `incident_id` bigint(20) unsigned DEFAULT NULL,
1821 `user_id` int(11) DEFAULT NULL,
1822 `verified_date` datetime DEFAULT NULL,
1823 `verified_status` tinyint(4) NOT NULL DEFAULT '0'
1824) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='Stores all verified reports';
1825
1826--
1827-- Dumping data for table `verified`
1828--
1829
1830INSERT INTO `verified` (`id`, `incident_id`, `user_id`, `verified_date`, `verified_status`) VALUES
1831(1, 2, 1, '2015-06-05 17:19:29', 3),
1832(2, 29, 1, '2015-06-05 23:27:03', 3),
1833(3, 4, 1, '2015-06-05 23:28:43', 2),
1834(4, 3, 1, '2015-06-05 23:29:44', 3),
1835(5, 1, 1, '2015-06-05 23:30:19', 3),
1836(6, 2, 1, '2015-06-05 23:31:08', 3),
1837(7, 1, 1, '2015-06-05 23:32:50', 3),
1838(8, 4, 1, '2015-06-06 10:00:51', 3),
1839(9, 46, 1, '2015-06-06 10:00:51', 3);
1840
1841-- --------------------------------------------------------
1842
1843--
1844-- Table structure for table `volunteer`
1845--
1846
1847CREATE TABLE IF NOT EXISTS `volunteer` (
1848 `id` bigint(20) unsigned NOT NULL,
1849 `user_id` int(11) unsigned DEFAULT '0',
1850 `volunteer` tinyint(4) NOT NULL DEFAULT '0',
1851 `incident_id` bigint(20) unsigned DEFAULT NULL,
1852 `volunteer_ip` varchar(100) DEFAULT NULL,
1853 `volunteer_date` datetime DEFAULT NULL
1854) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Stores Volunteers for a student from his reports';
1855
1856--
1857-- Dumping data for table `volunteer`
1858--
1859
1860INSERT INTO `volunteer` (`id`, `user_id`, `volunteer`, `incident_id`, `volunteer_ip`, `volunteer_date`) VALUES
1861(1, 2, 1, 29, '127.0.0.1', '2015-08-22 05:56:29'),
1862(2, 3, 1, 42, '127.0.0.1', '2015-08-26 09:58:03'),
1863(3, 3, -1, 29, '127.0.0.1', '2015-09-14 15:58:46');
1864
1865--
1866-- Indexes for dumped tables
1867--
1868
1869--
1870-- Indexes for table `actions`
1871--
1872ALTER TABLE `actions`
1873 ADD PRIMARY KEY (`action_id`);
1874
1875--
1876-- Indexes for table `actions_log`
1877--
1878ALTER TABLE `actions_log`
1879 ADD PRIMARY KEY (`id`),
1880 ADD KEY `action_id` (`action_id`);
1881
1882--
1883-- Indexes for table `alert`
1884--
1885ALTER TABLE `alert`
1886 ADD PRIMARY KEY (`id`),
1887 ADD UNIQUE KEY `uniq_alert_code` (`alert_code`),
1888 ADD KEY `user_id` (`user_id`);
1889
1890--
1891-- Indexes for table `alert_category`
1892--
1893ALTER TABLE `alert_category`
1894 ADD PRIMARY KEY (`id`),
1895 ADD KEY `alert_id` (`alert_id`),
1896 ADD KEY `category_id` (`category_id`);
1897
1898--
1899-- Indexes for table `alert_sent`
1900--
1901ALTER TABLE `alert_sent`
1902 ADD PRIMARY KEY (`id`),
1903 ADD KEY `incident_id` (`incident_id`),
1904 ADD KEY `alert_id` (`alert_id`);
1905
1906--
1907-- Indexes for table `api_banned`
1908--
1909ALTER TABLE `api_banned`
1910 ADD PRIMARY KEY (`id`);
1911
1912--
1913-- Indexes for table `api_log`
1914--
1915ALTER TABLE `api_log`
1916 ADD PRIMARY KEY (`id`);
1917
1918--
1919-- Indexes for table `api_settings`
1920--
1921ALTER TABLE `api_settings`
1922 ADD PRIMARY KEY (`id`);
1923
1924--
1925-- Indexes for table `badge`
1926--
1927ALTER TABLE `badge`
1928 ADD PRIMARY KEY (`id`);
1929
1930--
1931-- Indexes for table `badge_users`
1932--
1933ALTER TABLE `badge_users`
1934 ADD PRIMARY KEY (`user_id`,`badge_id`);
1935
1936--
1937-- Indexes for table `category`
1938--
1939ALTER TABLE `category`
1940 ADD PRIMARY KEY (`id`),
1941 ADD KEY `category_visible` (`category_visible`),
1942 ADD KEY `parent_id` (`parent_id`);
1943
1944--
1945-- Indexes for table `category_lang`
1946--
1947ALTER TABLE `category_lang`
1948 ADD PRIMARY KEY (`id`),
1949 ADD KEY `category_id` (`category_id`);
1950
1951--
1952-- Indexes for table `city`
1953--
1954ALTER TABLE `city`
1955 ADD PRIMARY KEY (`id`),
1956 ADD KEY `country_id` (`country_id`);
1957
1958--
1959-- Indexes for table `cluster`
1960--
1961ALTER TABLE `cluster`
1962 ADD PRIMARY KEY (`id`),
1963 ADD KEY `location_id` (`location_id`),
1964 ADD KEY `incident_id` (`incident_id`),
1965 ADD KEY `category_id` (`category_id`);
1966
1967--
1968-- Indexes for table `comment`
1969--
1970ALTER TABLE `comment`
1971 ADD PRIMARY KEY (`id`),
1972 ADD KEY `incident_id` (`incident_id`),
1973 ADD KEY `user_id` (`user_id`);
1974
1975--
1976-- Indexes for table `country`
1977--
1978ALTER TABLE `country`
1979 ADD PRIMARY KEY (`id`);
1980
1981--
1982-- Indexes for table `externalapp`
1983--
1984ALTER TABLE `externalapp`
1985 ADD PRIMARY KEY (`id`);
1986
1987--
1988-- Indexes for table `feed`
1989--
1990ALTER TABLE `feed`
1991 ADD PRIMARY KEY (`id`);
1992
1993--
1994-- Indexes for table `feed_item`
1995--
1996ALTER TABLE `feed_item`
1997 ADD PRIMARY KEY (`id`),
1998 ADD KEY `feed_id` (`feed_id`),
1999 ADD KEY `incident_id` (`incident_id`),
2000 ADD KEY `location_id` (`location_id`);
2001
2002--
2003-- Indexes for table `feed_item_category`
2004--
2005ALTER TABLE `feed_item_category`
2006 ADD PRIMARY KEY (`id`),
2007 ADD UNIQUE KEY `feed_item_category_ids` (`feed_item_id`,`category_id`),
2008 ADD KEY `feed_item_id` (`feed_item_id`),
2009 ADD KEY `category_id` (`category_id`);
2010
2011--
2012-- Indexes for table `form`
2013--
2014ALTER TABLE `form`
2015 ADD PRIMARY KEY (`id`),
2016 ADD UNIQUE KEY `form_title` (`form_title`);
2017
2018--
2019-- Indexes for table `form_field`
2020--
2021ALTER TABLE `form_field`
2022 ADD PRIMARY KEY (`id`),
2023 ADD UNIQUE KEY `field_name` (`field_name`,`form_id`),
2024 ADD KEY `fk_form_id` (`form_id`);
2025
2026--
2027-- Indexes for table `form_field_option`
2028--
2029ALTER TABLE `form_field_option`
2030 ADD PRIMARY KEY (`id`),
2031 ADD KEY `form_field_id` (`form_field_id`);
2032
2033--
2034-- Indexes for table `form_response`
2035--
2036ALTER TABLE `form_response`
2037 ADD PRIMARY KEY (`id`),
2038 ADD KEY `fk_form_field_id` (`form_field_id`),
2039 ADD KEY `incident_id` (`incident_id`);
2040
2041--
2042-- Indexes for table `geometry`
2043--
2044ALTER TABLE `geometry`
2045 ADD PRIMARY KEY (`id`),
2046 ADD SPATIAL KEY `geometry` (`geometry`),
2047 ADD KEY `incident_id` (`incident_id`);
2048
2049--
2050-- Indexes for table `incident`
2051--
2052ALTER TABLE `incident`
2053 ADD PRIMARY KEY (`id`),
2054 ADD KEY `location_id` (`location_id`),
2055 ADD KEY `incident_active` (`incident_active`),
2056 ADD KEY `incident_date` (`incident_date`),
2057 ADD KEY `form_id` (`form_id`),
2058 ADD KEY `user_id` (`user_id`),
2059 ADD KEY `incident_mode` (`incident_mode`),
2060 ADD KEY `incident_verified` (`incident_verified`);
2061
2062--
2063-- Indexes for table `incident_category`
2064--
2065ALTER TABLE `incident_category`
2066 ADD PRIMARY KEY (`id`),
2067 ADD UNIQUE KEY `incident_category_ids` (`incident_id`,`category_id`),
2068 ADD KEY `incident_id` (`incident_id`),
2069 ADD KEY `category_id` (`category_id`);
2070
2071--
2072-- Indexes for table `incident_lang`
2073--
2074ALTER TABLE `incident_lang`
2075 ADD PRIMARY KEY (`id`),
2076 ADD KEY `incident_id` (`incident_id`);
2077
2078--
2079-- Indexes for table `incident_person`
2080--
2081ALTER TABLE `incident_person`
2082 ADD PRIMARY KEY (`id`),
2083 ADD KEY `incident_id` (`incident_id`);
2084
2085--
2086-- Indexes for table `layer`
2087--
2088ALTER TABLE `layer`
2089 ADD PRIMARY KEY (`id`);
2090
2091--
2092-- Indexes for table `level`
2093--
2094ALTER TABLE `level`
2095 ADD PRIMARY KEY (`id`);
2096
2097--
2098-- Indexes for table `location`
2099--
2100ALTER TABLE `location`
2101 ADD PRIMARY KEY (`id`),
2102 ADD KEY `country_id` (`country_id`),
2103 ADD KEY `latitude` (`latitude`),
2104 ADD KEY `longitude` (`longitude`);
2105
2106--
2107-- Indexes for table `maintenance`
2108--
2109ALTER TABLE `maintenance`
2110 ADD PRIMARY KEY (`allowed_ip`);
2111
2112--
2113-- Indexes for table `media`
2114--
2115ALTER TABLE `media`
2116 ADD PRIMARY KEY (`id`),
2117 ADD KEY `incident_id` (`incident_id`),
2118 ADD KEY `location_id` (`location_id`),
2119 ADD KEY `badge_id` (`badge_id`),
2120 ADD KEY `message_id` (`message_id`);
2121
2122--
2123-- Indexes for table `message`
2124--
2125ALTER TABLE `message`
2126 ADD PRIMARY KEY (`id`),
2127 ADD KEY `user_id` (`user_id`),
2128 ADD KEY `incident_id` (`incident_id`),
2129 ADD KEY `reporter_id` (`reporter_id`);
2130
2131--
2132-- Indexes for table `openid`
2133--
2134ALTER TABLE `openid`
2135 ADD PRIMARY KEY (`id`),
2136 ADD KEY `openid` (`openid`),
2137 ADD KEY `user_id` (`user_id`);
2138
2139--
2140-- Indexes for table `opportunities`
2141--
2142ALTER TABLE `opportunities`
2143 ADD PRIMARY KEY (`id`);
2144
2145--
2146-- Indexes for table `page`
2147--
2148ALTER TABLE `page`
2149 ADD PRIMARY KEY (`id`);
2150
2151--
2152-- Indexes for table `permissions`
2153--
2154ALTER TABLE `permissions`
2155 ADD PRIMARY KEY (`id`),
2156 ADD UNIQUE KEY `name_UNIQUE` (`name`);
2157
2158--
2159-- Indexes for table `permissions_roles`
2160--
2161ALTER TABLE `permissions_roles`
2162 ADD PRIMARY KEY (`role_id`,`permission_id`);
2163
2164--
2165-- Indexes for table `plugin`
2166--
2167ALTER TABLE `plugin`
2168 ADD PRIMARY KEY (`id`),
2169 ADD UNIQUE KEY `plugin_name` (`plugin_name`);
2170
2171--
2172-- Indexes for table `private_message`
2173--
2174ALTER TABLE `private_message`
2175 ADD PRIMARY KEY (`id`),
2176 ADD KEY `user_id` (`user_id`);
2177
2178--
2179-- Indexes for table `rating`
2180--
2181ALTER TABLE `rating`
2182 ADD PRIMARY KEY (`id`),
2183 ADD KEY `user_id` (`user_id`),
2184 ADD KEY `incident_id` (`incident_id`),
2185 ADD KEY `comment_id` (`comment_id`);
2186
2187--
2188-- Indexes for table `reporter`
2189--
2190ALTER TABLE `reporter`
2191 ADD PRIMARY KEY (`id`),
2192 ADD KEY `user_id` (`user_id`),
2193 ADD KEY `location_id` (`location_id`),
2194 ADD KEY `service_id` (`service_id`),
2195 ADD KEY `level_id` (`level_id`);
2196
2197--
2198-- Indexes for table `roles`
2199--
2200ALTER TABLE `roles`
2201 ADD PRIMARY KEY (`id`),
2202 ADD UNIQUE KEY `uniq_name` (`name`);
2203
2204--
2205-- Indexes for table `roles_users`
2206--
2207ALTER TABLE `roles_users`
2208 ADD PRIMARY KEY (`user_id`,`role_id`),
2209 ADD KEY `fk_role_id` (`role_id`);
2210
2211--
2212-- Indexes for table `scheduler`
2213--
2214ALTER TABLE `scheduler`
2215 ADD PRIMARY KEY (`id`);
2216
2217--
2218-- Indexes for table `scheduler_log`
2219--
2220ALTER TABLE `scheduler_log`
2221 ADD PRIMARY KEY (`id`),
2222 ADD KEY `scheduler_id` (`scheduler_id`);
2223
2224--
2225-- Indexes for table `service`
2226--
2227ALTER TABLE `service`
2228 ADD PRIMARY KEY (`id`);
2229
2230--
2231-- Indexes for table `sessions`
2232--
2233ALTER TABLE `sessions`
2234 ADD PRIMARY KEY (`session_id`);
2235
2236--
2237-- Indexes for table `settings`
2238--
2239ALTER TABLE `settings`
2240 ADD PRIMARY KEY (`id`),
2241 ADD UNIQUE KEY `uq_settings_key` (`key`);
2242
2243--
2244-- Indexes for table `user_tokens`
2245--
2246ALTER TABLE `user_tokens`
2247 ADD PRIMARY KEY (`id`),
2248 ADD UNIQUE KEY `uniq_token` (`token`),
2249 ADD KEY `fk_user_id` (`user_id`);
2250
2251--
2252-- Indexes for table `users`
2253--
2254ALTER TABLE `users`
2255 ADD PRIMARY KEY (`id`),
2256 ADD UNIQUE KEY `uniq_username` (`username`),
2257 ADD UNIQUE KEY `uniq_email` (`email`);
2258
2259--
2260-- Indexes for table `verified`
2261--
2262ALTER TABLE `verified`
2263 ADD PRIMARY KEY (`id`),
2264 ADD KEY `incident_id` (`incident_id`);
2265
2266--
2267-- Indexes for table `volunteer`
2268--
2269ALTER TABLE `volunteer`
2270 ADD PRIMARY KEY (`id`);
2271
2272--
2273-- AUTO_INCREMENT for dumped tables
2274--
2275
2276--
2277-- AUTO_INCREMENT for table `actions`
2278--
2279ALTER TABLE `actions`
2280 MODIFY `action_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
2281--
2282-- AUTO_INCREMENT for table `actions_log`
2283--
2284ALTER TABLE `actions_log`
2285 MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
2286--
2287-- AUTO_INCREMENT for table `alert`
2288--
2289ALTER TABLE `alert`
2290 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
2291--
2292-- AUTO_INCREMENT for table `alert_category`
2293--
2294ALTER TABLE `alert_category`
2295 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
2296--
2297-- AUTO_INCREMENT for table `alert_sent`
2298--
2299ALTER TABLE `alert_sent`
2300 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
2301--
2302-- AUTO_INCREMENT for table `api_banned`
2303--
2304ALTER TABLE `api_banned`
2305 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
2306--
2307-- AUTO_INCREMENT for table `api_log`
2308--
2309ALTER TABLE `api_log`
2310 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19;
2311--
2312-- AUTO_INCREMENT for table `api_settings`
2313--
2314ALTER TABLE `api_settings`
2315 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
2316--
2317-- AUTO_INCREMENT for table `badge`
2318--
2319ALTER TABLE `badge`
2320 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
2321--
2322-- AUTO_INCREMENT for table `category`
2323--
2324ALTER TABLE `category`
2325 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
2326--
2327-- AUTO_INCREMENT for table `category_lang`
2328--
2329ALTER TABLE `category_lang`
2330 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
2331--
2332-- AUTO_INCREMENT for table `city`
2333--
2334ALTER TABLE `city`
2335 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
2336--
2337-- AUTO_INCREMENT for table `comment`
2338--
2339ALTER TABLE `comment`
2340 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
2341--
2342-- AUTO_INCREMENT for table `country`
2343--
2344ALTER TABLE `country`
2345 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=250;
2346--
2347-- AUTO_INCREMENT for table `externalapp`
2348--
2349ALTER TABLE `externalapp`
2350 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
2351--
2352-- AUTO_INCREMENT for table `feed`
2353--
2354ALTER TABLE `feed`
2355 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
2356--
2357-- AUTO_INCREMENT for table `feed_item`
2358--
2359ALTER TABLE `feed_item`
2360 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
2361--
2362-- AUTO_INCREMENT for table `feed_item_category`
2363--
2364ALTER TABLE `feed_item_category`
2365 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
2366--
2367-- AUTO_INCREMENT for table `form`
2368--
2369ALTER TABLE `form`
2370 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
2371--
2372-- AUTO_INCREMENT for table `form_field`
2373--
2374ALTER TABLE `form_field`
2375 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=15;
2376--
2377-- AUTO_INCREMENT for table `form_field_option`
2378--
2379ALTER TABLE `form_field_option`
2380 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19;
2381--
2382-- AUTO_INCREMENT for table `form_response`
2383--
2384ALTER TABLE `form_response`
2385 MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=333;
2386--
2387-- AUTO_INCREMENT for table `geometry`
2388--
2389ALTER TABLE `geometry`
2390 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
2391--
2392-- AUTO_INCREMENT for table `incident`
2393--
2394ALTER TABLE `incident`
2395 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=49;
2396--
2397-- AUTO_INCREMENT for table `incident_category`
2398--
2399ALTER TABLE `incident_category`
2400 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=82;
2401--
2402-- AUTO_INCREMENT for table `incident_lang`
2403--
2404ALTER TABLE `incident_lang`
2405 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
2406--
2407-- AUTO_INCREMENT for table `incident_person`
2408--
2409ALTER TABLE `incident_person`
2410 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=28;
2411--
2412-- AUTO_INCREMENT for table `layer`
2413--
2414ALTER TABLE `layer`
2415 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
2416--
2417-- AUTO_INCREMENT for table `level`
2418--
2419ALTER TABLE `level`
2420 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
2421--
2422-- AUTO_INCREMENT for table `location`
2423--
2424ALTER TABLE `location`
2425 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=49;
2426--
2427-- AUTO_INCREMENT for table `media`
2428--
2429ALTER TABLE `media`
2430 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
2431--
2432-- AUTO_INCREMENT for table `message`
2433--
2434ALTER TABLE `message`
2435 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
2436--
2437-- AUTO_INCREMENT for table `openid`
2438--
2439ALTER TABLE `openid`
2440 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
2441--
2442-- AUTO_INCREMENT for table `opportunities`
2443--
2444ALTER TABLE `opportunities`
2445 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
2446--
2447-- AUTO_INCREMENT for table `page`
2448--
2449ALTER TABLE `page`
2450 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
2451--
2452-- AUTO_INCREMENT for table `permissions`
2453--
2454ALTER TABLE `permissions`
2455 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=21;
2456--
2457-- AUTO_INCREMENT for table `plugin`
2458--
2459ALTER TABLE `plugin`
2460 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
2461--
2462-- AUTO_INCREMENT for table `private_message`
2463--
2464ALTER TABLE `private_message`
2465 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
2466--
2467-- AUTO_INCREMENT for table `rating`
2468--
2469ALTER TABLE `rating`
2470 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
2471--
2472-- AUTO_INCREMENT for table `reporter`
2473--
2474ALTER TABLE `reporter`
2475 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
2476--
2477-- AUTO_INCREMENT for table `roles`
2478--
2479ALTER TABLE `roles`
2480 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
2481--
2482-- AUTO_INCREMENT for table `scheduler`
2483--
2484ALTER TABLE `scheduler`
2485 MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
2486--
2487-- AUTO_INCREMENT for table `scheduler_log`
2488--
2489ALTER TABLE `scheduler_log`
2490 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=99;
2491--
2492-- AUTO_INCREMENT for table `service`
2493--
2494ALTER TABLE `service`
2495 MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
2496--
2497-- AUTO_INCREMENT for table `settings`
2498--
2499ALTER TABLE `settings`
2500 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=81;
2501--
2502-- AUTO_INCREMENT for table `user_tokens`
2503--
2504ALTER TABLE `user_tokens`
2505 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
2506--
2507-- AUTO_INCREMENT for table `users`
2508--
2509ALTER TABLE `users`
2510 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
2511--
2512-- AUTO_INCREMENT for table `verified`
2513--
2514ALTER TABLE `verified`
2515 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10;
2516--
2517-- AUTO_INCREMENT for table `volunteer`
2518--
2519ALTER TABLE `volunteer`
2520 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;--
2521-- Database: `crowd2`
2522--
2523
2524-- --------------------------------------------------------
2525
2526--
2527-- Table structure for table `actions`
2528--
2529
2530CREATE TABLE IF NOT EXISTS `actions` (
2531 `action_id` int(11) NOT NULL,
2532 `action` varchar(75) NOT NULL,
2533 `qualifiers` text NOT NULL,
2534 `response` varchar(75) NOT NULL,
2535 `response_vars` text NOT NULL,
2536 `active` tinyint(4) NOT NULL
2537) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores user defined actions triggered by certain events';
2538
2539-- --------------------------------------------------------
2540
2541--
2542-- Table structure for table `actions_log`
2543--
2544
2545CREATE TABLE IF NOT EXISTS `actions_log` (
2546 `id` bigint(20) NOT NULL,
2547 `action_id` int(11) NOT NULL,
2548 `user_id` int(11) NOT NULL,
2549 `time` int(10) NOT NULL
2550) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores a log of triggered actions';
2551
2552-- --------------------------------------------------------
2553
2554--
2555-- Table structure for table `alert`
2556--
2557
2558CREATE TABLE IF NOT EXISTS `alert` (
2559 `id` bigint(20) unsigned NOT NULL,
2560 `user_id` int(11) unsigned DEFAULT '0',
2561 `alert_type` tinyint(4) NOT NULL COMMENT '1 - MOBILE, 2 - EMAIL',
2562 `alert_recipient` varchar(200) DEFAULT NULL,
2563 `alert_code` varchar(30) DEFAULT NULL,
2564 `alert_confirmed` tinyint(4) NOT NULL DEFAULT '0',
2565 `alert_lat` varchar(150) DEFAULT NULL,
2566 `alert_lon` varchar(150) DEFAULT NULL,
2567 `alert_radius` tinyint(4) NOT NULL DEFAULT '20',
2568 `alert_ip` varchar(100) DEFAULT NULL
2569) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores alerts subscribers information';
2570
2571-- --------------------------------------------------------
2572
2573--
2574-- Table structure for table `alert_category`
2575--
2576
2577CREATE TABLE IF NOT EXISTS `alert_category` (
2578 `id` int(11) NOT NULL,
2579 `alert_id` bigint(20) unsigned DEFAULT NULL,
2580 `category_id` int(11) unsigned DEFAULT NULL
2581) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores subscriber alert categories';
2582
2583-- --------------------------------------------------------
2584
2585--
2586-- Table structure for table `alert_sent`
2587--
2588
2589CREATE TABLE IF NOT EXISTS `alert_sent` (
2590 `id` bigint(20) unsigned NOT NULL,
2591 `incident_id` bigint(20) unsigned NOT NULL,
2592 `alert_id` bigint(20) unsigned NOT NULL,
2593 `alert_date` datetime DEFAULT NULL
2594) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores a log of alerts sent out to subscribers';
2595
2596-- --------------------------------------------------------
2597
2598--
2599-- Table structure for table `api_banned`
2600--
2601
2602CREATE TABLE IF NOT EXISTS `api_banned` (
2603 `id` int(11) unsigned NOT NULL,
2604 `banned_ipaddress` varchar(50) NOT NULL,
2605 `banned_date` datetime NOT NULL
2606) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='For logging banned API IP addresses';
2607
2608-- --------------------------------------------------------
2609
2610--
2611-- Table structure for table `api_log`
2612--
2613
2614CREATE TABLE IF NOT EXISTS `api_log` (
2615 `id` int(11) unsigned NOT NULL,
2616 `api_task` varchar(10) NOT NULL,
2617 `api_parameters` varchar(100) NOT NULL,
2618 `api_records` tinyint(11) NOT NULL,
2619 `api_ipaddress` varchar(50) NOT NULL,
2620 `api_date` datetime NOT NULL
2621) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT='For logging API activities';
2622
2623-- --------------------------------------------------------
2624
2625--
2626-- Table structure for table `api_settings`
2627--
2628
2629CREATE TABLE IF NOT EXISTS `api_settings` (
2630 `id` int(11) NOT NULL,
2631 `default_record_limit` int(11) NOT NULL DEFAULT '20',
2632 `max_record_limit` int(11) DEFAULT NULL,
2633 `max_requests_per_ip_address` int(11) DEFAULT NULL,
2634 `max_requests_quota_basis` int(11) DEFAULT NULL,
2635 `modification_date` datetime NOT NULL
2636) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='For storing API logging settings';
2637
2638-- --------------------------------------------------------
2639
2640--
2641-- Table structure for table `badge`
2642--
2643
2644CREATE TABLE IF NOT EXISTS `badge` (
2645 `id` int(11) NOT NULL,
2646 `name` varchar(250) NOT NULL,
2647 `description` text NOT NULL
2648) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores description of badges to be assigned';
2649
2650-- --------------------------------------------------------
2651
2652--
2653-- Table structure for table `badge_users`
2654--
2655
2656CREATE TABLE IF NOT EXISTS `badge_users` (
2657 `user_id` int(11) unsigned NOT NULL,
2658 `badge_id` int(11) NOT NULL
2659) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores assigned badge information';
2660
2661-- --------------------------------------------------------
2662
2663--
2664-- Table structure for table `category`
2665--
2666
2667CREATE TABLE IF NOT EXISTS `category` (
2668 `id` int(11) unsigned NOT NULL,
2669 `parent_id` int(11) NOT NULL DEFAULT '0',
2670 `locale` varchar(10) NOT NULL DEFAULT 'en_US',
2671 `category_position` tinyint(4) NOT NULL DEFAULT '0',
2672 `category_title` varchar(255) DEFAULT NULL,
2673 `category_description` text,
2674 `category_color` varchar(20) DEFAULT NULL,
2675 `category_image` varchar(255) DEFAULT NULL,
2676 `category_image_thumb` varchar(255) DEFAULT NULL,
2677 `category_visible` tinyint(4) NOT NULL DEFAULT '1',
2678 `category_trusted` tinyint(4) NOT NULL DEFAULT '0'
2679) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='Holds information about categories defined for a deployment';
2680
2681--
2682-- Dumping data for table `category`
2683--
2684
2685INSERT INTO `category` (`id`, `parent_id`, `locale`, `category_position`, `category_title`, `category_description`, `category_color`, `category_image`, `category_image_thumb`, `category_visible`, `category_trusted`) VALUES
2686(1, 0, 'en_US', 0, 'Teacher needed. Please Volunteer.', 'Category 1', '9900CC', NULL, NULL, 1, 0),
2687(2, 0, 'en_US', 1, 'Immediate attention needed!', 'Category 2', '3300FF', NULL, NULL, 1, 0),
2688(3, 0, 'en_US', 2, 'PCV assigned', 'Category 3', '663300', NULL, NULL, 1, 0),
2689(4, 0, 'en_US', 4, 'Trusted Reports', 'Reports from trusted reporters', 'ebe575', NULL, NULL, 1, 1),
2690(6, 0, 'en_US', 3, 'Healthcare needed', 'Category 4', '6f9e6b', NULL, NULL, 1, 0);
2691
2692-- --------------------------------------------------------
2693
2694--
2695-- Table structure for table `category_lang`
2696--
2697
2698CREATE TABLE IF NOT EXISTS `category_lang` (
2699 `id` int(11) unsigned NOT NULL,
2700 `category_id` int(11) unsigned NOT NULL,
2701 `locale` varchar(10) DEFAULT NULL,
2702 `category_title` varchar(255) DEFAULT NULL,
2703 `category_description` text
2704) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Holds translations for category titles and descriptions';
2705
2706-- --------------------------------------------------------
2707
2708--
2709-- Table structure for table `city`
2710--
2711
2712CREATE TABLE IF NOT EXISTS `city` (
2713 `id` bigint(20) unsigned NOT NULL,
2714 `country_id` int(11) DEFAULT NULL,
2715 `city` varchar(200) DEFAULT NULL,
2716 `city_lat` varchar(150) DEFAULT NULL,
2717 `city_lon` varchar(200) DEFAULT NULL
2718) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores cities of countries retrieved by user.';
2719
2720-- --------------------------------------------------------
2721
2722--
2723-- Table structure for table `cluster`
2724--
2725
2726CREATE TABLE IF NOT EXISTS `cluster` (
2727 `id` int(11) NOT NULL,
2728 `location_id` bigint(20) unsigned NOT NULL DEFAULT '0',
2729 `latitude` double NOT NULL,
2730 `longitude` double NOT NULL,
2731 `latitude_min` double NOT NULL,
2732 `longitude_min` double NOT NULL,
2733 `latitude_max` double NOT NULL,
2734 `longitude_max` double NOT NULL,
2735 `child_count` int(11) NOT NULL,
2736 `parent_id` int(11) NOT NULL,
2737 `left_side` int(11) NOT NULL,
2738 `right_side` int(11) NOT NULL,
2739 `level` int(11) NOT NULL,
2740 `incident_id` bigint(20) unsigned NOT NULL DEFAULT '0',
2741 `category_id` int(11) unsigned NOT NULL DEFAULT '0'
2742) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores information used for clustering of reports on the map.';
2743
2744-- --------------------------------------------------------
2745
2746--
2747-- Table structure for table `comment`
2748--
2749
2750CREATE TABLE IF NOT EXISTS `comment` (
2751 `id` bigint(20) unsigned NOT NULL,
2752 `incident_id` bigint(20) unsigned DEFAULT NULL,
2753 `user_id` int(11) unsigned DEFAULT '0',
2754 `comment_author` varchar(100) DEFAULT NULL,
2755 `comment_email` varchar(120) DEFAULT NULL,
2756 `comment_description` text,
2757 `comment_ip` varchar(100) DEFAULT NULL,
2758 `comment_spam` tinyint(4) NOT NULL DEFAULT '0',
2759 `comment_active` tinyint(4) NOT NULL DEFAULT '0',
2760 `comment_date` datetime DEFAULT NULL,
2761 `comment_date_gmt` datetime DEFAULT NULL
2762) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores comments made on reports';
2763
2764-- --------------------------------------------------------
2765
2766--
2767-- Table structure for table `country`
2768--
2769
2770CREATE TABLE IF NOT EXISTS `country` (
2771 `id` int(11) NOT NULL,
2772 `iso` varchar(10) DEFAULT NULL,
2773 `country` varchar(100) DEFAULT NULL,
2774 `capital` varchar(100) DEFAULT NULL,
2775 `cities` tinyint(4) NOT NULL DEFAULT '0'
2776) ENGINE=MyISAM AUTO_INCREMENT=250 DEFAULT CHARSET=utf8 COMMENT='Stores a list of all countries and their capital cities';
2777
2778--
2779-- Dumping data for table `country`
2780--
2781
2782INSERT INTO `country` (`id`, `iso`, `country`, `capital`, `cities`) VALUES
2783(1, 'AD', 'Andorra', 'Andorra la Vella', 0),
2784(2, 'AE', 'United Arab Emirates', 'Abu Dhabi', 0),
2785(3, 'AF', 'Afghanistan', 'Kabul', 0),
2786(4, 'AG', 'Antigua and Barbuda', 'St. John''s', 0),
2787(5, 'AI', 'Anguilla', 'The Valley', 0),
2788(6, 'AL', 'Albania', 'Tirana', 0),
2789(7, 'AM', 'Armenia', 'Yerevan', 0),
2790(8, 'AN', 'Netherlands Antilles', 'Willemstad', 0),
2791(9, 'AO', 'Angola', 'Luanda', 0),
2792(10, 'AQ', 'Antarctica', '', 0),
2793(11, 'AR', 'Argentina', 'Buenos Aires', 0),
2794(12, 'AS', 'American Samoa', 'Pago Pago', 0),
2795(13, 'AT', 'Austria', 'Vienna', 0),
2796(14, 'AU', 'Australia', 'Canberra', 0),
2797(15, 'AW', 'Aruba', 'Oranjestad', 0),
2798(16, 'AX', 'Aland Islands', 'Mariehamn', 0),
2799(17, 'AZ', 'Azerbaijan', 'Baku', 0),
2800(18, 'BA', 'Bosnia and Herzegovina', 'Sarajevo', 0),
2801(19, 'BB', 'Barbados', 'Bridgetown', 0),
2802(20, 'BD', 'Bangladesh', 'Dhaka', 0),
2803(21, 'BE', 'Belgium', 'Brussels', 0),
2804(22, 'BF', 'Burkina Faso', 'Ouagadougou', 0),
2805(23, 'BG', 'Bulgaria', 'Sofia', 0),
2806(24, 'BH', 'Bahrain', 'Manama', 0),
2807(25, 'BI', 'Burundi', 'Bujumbura', 0),
2808(26, 'BJ', 'Benin', 'Porto-Novo', 0),
2809(27, 'BL', 'Saint Barthélemy', 'Gustavia', 0),
2810(28, 'BM', 'Bermuda', 'Hamilton', 0),
2811(29, 'BN', 'Brunei', 'Bandar Seri Begawan', 0),
2812(30, 'BO', 'Bolivia', 'La Paz', 0),
2813(31, 'BR', 'Brazil', 'BrasÃÂlia', 0),
2814(32, 'BS', 'Bahamas', 'Nassau', 0),
2815(33, 'BT', 'Bhutan', 'Thimphu', 0),
2816(34, 'BV', 'Bouvet Island', '', 0),
2817(35, 'BW', 'Botswana', 'Gaborone', 0),
2818(36, 'BY', 'Belarus', 'Minsk', 0),
2819(37, 'BZ', 'Belize', 'Belmopan', 0),
2820(38, 'CA', 'Canada', 'Ottawa', 0),
2821(39, 'CC', 'Cocos Islands', 'West Island', 0),
2822(40, 'CD', 'Democratic Republic of the Congo', 'Kinshasa', 0),
2823(41, 'CF', 'Central African Republic', 'Bangui', 0),
2824(42, 'CG', 'Congo Brazzavile', 'Brazzaville', 0),
2825(43, 'CH', 'Switzerland', 'Berne', 0),
2826(44, 'CI', 'Ivory Coast', 'Yamoussoukro', 0),
2827(45, 'CK', 'Cook Islands', 'Avarua', 0),
2828(46, 'CL', 'Chile', 'Santiago', 0),
2829(47, 'CM', 'Cameroon', 'Yaoundé', 0),
2830(48, 'CN', 'China', 'Beijing', 0),
2831(49, 'CO', 'Colombia', 'Bogotá', 0),
2832(50, 'CR', 'Costa Rica', 'San José', 0),
2833(51, 'CS', 'Serbia and Montenegro', 'Belgrade', 0),
2834(52, 'CU', 'Cuba', 'Havana', 0),
2835(53, 'CV', 'Cape Verde', 'Praia', 0),
2836(54, 'CX', 'Christmas Island', 'Flying Fish Cove', 0),
2837(55, 'CY', 'Cyprus', 'Nicosia', 0),
2838(56, 'CZ', 'Czech Republic', 'Prague', 0),
2839(57, 'DE', 'Germany', 'Berlin', 0),
2840(58, 'DJ', 'Djibouti', 'Djibouti', 0),
2841(59, 'DK', 'Denmark', 'Copenhagen', 0),
2842(60, 'DM', 'Dominica', 'Roseau', 0),
2843(61, 'DO', 'Dominican Republic', 'Santo Domingo', 0),
2844(62, 'DZ', 'Algeria', 'Algiers', 0),
2845(63, 'EC', 'Ecuador', 'Quito', 0),
2846(64, 'EE', 'Estonia', 'Tallinn', 0),
2847(65, 'EG', 'Egypt', 'Cairo', 0),
2848(66, 'EH', 'Western Sahara', 'El-Aaiun', 0),
2849(67, 'ER', 'Eritrea', 'Asmara', 0),
2850(68, 'ES', 'Spain', 'Madrid', 0),
2851(69, 'ET', 'Ethiopia', 'Addis Ababa', 0),
2852(70, 'FI', 'Finland', 'Helsinki', 0),
2853(71, 'FJ', 'Fiji', 'Suva', 0),
2854(72, 'FK', 'Falkland Islands', 'Stanley', 0),
2855(73, 'FM', 'Micronesia', 'Palikir', 0),
2856(74, 'FO', 'Faroe Islands', 'Tórshavn', 0),
2857(75, 'FR', 'France', 'Paris', 0),
2858(76, 'GA', 'Gabon', 'Libreville', 0),
2859(77, 'GB', 'United Kingdom', 'London', 0),
2860(78, 'GD', 'Grenada', 'St. George''s', 0),
2861(79, 'GE', 'Georgia', 'Tbilisi', 0),
2862(80, 'GF', 'French Guiana', 'Cayenne', 0),
2863(81, 'GG', 'Guernsey', 'St Peter Port', 0),
2864(82, 'GH', 'Ghana', 'Accra', 0),
2865(83, 'GI', 'Gibraltar', 'Gibraltar', 0),
2866(84, 'GL', 'Greenland', 'Nuuk', 0),
2867(85, 'GM', 'Gambia', 'Banjul', 0),
2868(86, 'GN', 'Guinea', 'Conakry', 0),
2869(87, 'GP', 'Guadeloupe', 'Basse-Terre', 0),
2870(88, 'GQ', 'Equatorial Guinea', 'Malabo', 0),
2871(89, 'GR', 'Greece', 'Athens', 0),
2872(90, 'GS', 'South Georgia and the South Sandwich Islands', 'Grytviken', 0),
2873(91, 'GT', 'Guatemala', 'Guatemala City', 0),
2874(92, 'GU', 'Guam', 'Hagåtña', 0),
2875(93, 'GW', 'Guinea-Bissau', 'Bissau', 0),
2876(94, 'GY', 'Guyana', 'Georgetown', 0),
2877(95, 'HK', 'Hong Kong', 'Hong Kong', 0),
2878(96, 'HM', 'Heard Island and McDonald Islands', '', 0),
2879(97, 'HN', 'Honduras', 'Tegucigalpa', 0),
2880(98, 'HR', 'Croatia', 'Zagreb', 0),
2881(99, 'HT', 'Haiti', 'Port-au-Prince', 0),
2882(100, 'HU', 'Hungary', 'Budapest', 0),
2883(101, 'ID', 'Indonesia', 'Jakarta', 0),
2884(102, 'IE', 'Ireland', 'Dublin', 0),
2885(103, 'IL', 'Israel', 'Jerusalem', 0),
2886(104, 'IM', 'Isle of Man', 'Douglas, Isle of Man', 0),
2887(105, 'IN', 'India', 'New Delhi', 0),
2888(106, 'IO', 'British Indian Ocean Territory', 'Diego Garcia', 0),
2889(107, 'IQ', 'Iraq', 'Baghdad', 0),
2890(108, 'IR', 'Iran', 'Tehran', 0),
2891(109, 'IS', 'Iceland', 'ReykjavÃÂk', 0),
2892(110, 'IT', 'Italy', 'Rome', 0),
2893(111, 'JE', 'Jersey', 'Saint Helier', 0),
2894(112, 'JM', 'Jamaica', 'Kingston', 0),
2895(113, 'JO', 'Jordan', 'Amman', 0),
2896(114, 'JP', 'Japan', 'Tokyo', 0),
2897(115, 'KE', 'Kenya', 'Nairobi', 0),
2898(116, 'KG', 'Kyrgyzstan', 'Bishkek', 0),
2899(117, 'KH', 'Cambodia', 'Phnom Penh', 0),
2900(118, 'KI', 'Kiribati', 'South Tarawa', 0),
2901(119, 'KM', 'Comoros', 'Moroni', 0),
2902(120, 'KN', 'Saint Kitts and Nevis', 'Basseterre', 0),
2903(121, 'KP', 'North Korea', 'Pyongyang', 0),
2904(122, 'KR', 'South Korea', 'Seoul', 0),
2905(123, 'KW', 'Kuwait', 'Kuwait City', 0),
2906(124, 'KY', 'Cayman Islands', 'George Town', 0),
2907(125, 'KZ', 'Kazakhstan', 'Astana', 0),
2908(126, 'LA', 'Laos', 'Vientiane', 0),
2909(127, 'LB', 'Lebanon', 'Beirut', 0),
2910(128, 'LC', 'Saint Lucia', 'Castries', 0),
2911(129, 'LI', 'Liechtenstein', 'Vaduz', 0),
2912(130, 'LK', 'Sri Lanka', 'Colombo', 0),
2913(131, 'LR', 'Liberia', 'Monrovia', 0),
2914(132, 'LS', 'Lesotho', 'Maseru', 0),
2915(133, 'LT', 'Lithuania', 'Vilnius', 0),
2916(134, 'LU', 'Luxembourg', 'Luxembourg', 0),
2917(135, 'LV', 'Latvia', 'Riga', 0),
2918(136, 'LY', 'Libya', 'Tripolis', 0),
2919(137, 'MA', 'Morocco', 'Rabat', 0),
2920(138, 'MC', 'Monaco', 'Monaco', 0),
2921(139, 'MD', 'Moldova', 'Chi_in_u', 0),
2922(140, 'ME', 'Montenegro', 'Podgorica', 0),
2923(141, 'MF', 'Saint Martin', 'Marigot', 0),
2924(142, 'MG', 'Madagascar', 'Antananarivo', 0),
2925(143, 'MH', 'Marshall Islands', 'Uliga', 0),
2926(144, 'MK', 'Macedonia', 'Skopje', 0),
2927(145, 'ML', 'Mali', 'Bamako', 0),
2928(146, 'MM', 'Myanmar', 'Yangon', 0),
2929(147, 'MN', 'Mongolia', 'Ulan Bator', 0),
2930(148, 'MO', 'Macao', 'Macao', 0),
2931(149, 'MP', 'Northern Mariana Islands', 'Saipan', 0),
2932(150, 'MQ', 'Martinique', 'Fort-de-France', 0),
2933(151, 'MR', 'Mauritania', 'Nouakchott', 0),
2934(152, 'MS', 'Montserrat', 'Plymouth', 0),
2935(153, 'MT', 'Malta', 'Valletta', 0),
2936(154, 'MU', 'Mauritius', 'Port Louis', 0),
2937(155, 'MV', 'Maldives', 'Malé', 0),
2938(156, 'MW', 'Malawi', 'Lilongwe', 0),
2939(157, 'MX', 'Mexico', 'Mexico City', 0),
2940(158, 'MY', 'Malaysia', 'Kuala Lumpur', 0),
2941(159, 'MZ', 'Mozambique', 'Maputo', 0),
2942(160, 'NA', 'Namibia', 'Windhoek', 0),
2943(161, 'NC', 'New Caledonia', 'Nouméa', 0),
2944(162, 'NE', 'Niger', 'Niamey', 0),
2945(163, 'NF', 'Norfolk Island', 'Kingston', 0),
2946(164, 'NG', 'Nigeria', 'Abuja', 0),
2947(165, 'NI', 'Nicaragua', 'Managua', 0),
2948(166, 'NL', 'Netherlands', 'Amsterdam', 0),
2949(167, 'NO', 'Norway', 'Oslo', 0),
2950(168, 'NP', 'Nepal', 'Kathmandu', 0),
2951(169, 'NR', 'Nauru', 'Yaren', 0),
2952(170, 'NU', 'Niue', 'Alofi', 0),
2953(171, 'NZ', 'New Zealand', 'Wellington', 0),
2954(172, 'OM', 'Oman', 'Muscat', 0),
2955(173, 'PA', 'Panama', 'Panama City', 0),
2956(174, 'PE', 'Peru', 'Lima', 0),
2957(175, 'PF', 'French Polynesia', 'Papeete', 0),
2958(176, 'PG', 'Papua New Guinea', 'Port Moresby', 0),
2959(177, 'PH', 'Philippines', 'Manila', 0),
2960(178, 'PK', 'Pakistan', 'Islamabad', 0),
2961(179, 'PL', 'Poland', 'Warsaw', 0),
2962(180, 'PM', 'Saint Pierre and Miquelon', 'Saint-Pierre', 0),
2963(181, 'PN', 'Pitcairn', 'Adamstown', 0),
2964(182, 'PR', 'Puerto Rico', 'San Juan', 0),
2965(183, 'PS', 'Palestinian Territory', 'East Jerusalem', 0),
2966(184, 'PT', 'Portugal', 'Lisbon', 0),
2967(185, 'PW', 'Palau', 'Koror', 0),
2968(186, 'PY', 'Paraguay', 'Asunción', 0),
2969(187, 'QA', 'Qatar', 'Doha', 0),
2970(188, 'RE', 'Reunion', 'Saint-Denis', 0),
2971(189, 'RO', 'Romania', 'Bucharest', 0),
2972(190, 'RS', 'Serbia', 'Belgrade', 0),
2973(191, 'RU', 'Russia', 'Moscow', 0),
2974(192, 'RW', 'Rwanda', 'Kigali', 0),
2975(193, 'SA', 'Saudi Arabia', 'Riyadh', 0),
2976(194, 'SB', 'Solomon Islands', 'Honiara', 0),
2977(195, 'SC', 'Seychelles', 'Victoria', 0),
2978(196, 'SD', 'Sudan', 'Khartoum', 0),
2979(197, 'SE', 'Sweden', 'Stockholm', 0),
2980(198, 'SG', 'Singapore', 'Singapur', 0),
2981(199, 'SH', 'Saint Helena', 'Jamestown', 0),
2982(200, 'SI', 'Slovenia', 'Ljubljana', 0),
2983(201, 'SJ', 'Svalbard and Jan Mayen', 'Longyearbyen', 0),
2984(202, 'SK', 'Slovakia', 'Bratislava', 0),
2985(203, 'SL', 'Sierra Leone', 'Freetown', 0),
2986(204, 'SM', 'San Marino', 'San Marino', 0),
2987(205, 'SN', 'Senegal', 'Dakar', 0),
2988(206, 'SO', 'Somalia', 'Mogadishu', 0),
2989(207, 'SR', 'Suriname', 'Paramaribo', 0),
2990(208, 'ST', 'Sao Tome and Principe', 'São Tomé', 0),
2991(209, 'SV', 'El Salvador', 'San Salvador', 0),
2992(210, 'SY', 'Syria', 'Damascus', 0),
2993(211, 'SZ', 'Swaziland', 'Mbabane', 0),
2994(212, 'TC', 'Turks and Caicos Islands', 'Cockburn Town', 0),
2995(213, 'TD', 'Chad', 'N''Djamena', 0),
2996(214, 'TF', 'French Southern Territories', 'Martin-de-Viviès', 0),
2997(215, 'TG', 'Togo', 'Lomé', 0),
2998(216, 'TH', 'Thailand', 'Bangkok', 0),
2999(217, 'TJ', 'Tajikistan', 'Dushanbe', 0),
3000(218, 'TK', 'Tokelau', '', 0),
3001(219, 'TL', 'East Timor', 'Dili', 0),
3002(220, 'TM', 'Turkmenistan', 'Ashgabat', 0),
3003(221, 'TN', 'Tunisia', 'Tunis', 0),
3004(222, 'TO', 'Tonga', 'Nuku''alofa', 0),
3005(223, 'TR', 'Turkey', 'Ankara', 0),
3006(224, 'TT', 'Trinidad and Tobago', 'Port of Spain', 0),
3007(225, 'TV', 'Tuvalu', 'Vaiaku', 0),
3008(226, 'TW', 'Taiwan', 'Taipei', 0),
3009(227, 'TZ', 'Tanzania', 'Dar es Salaam', 0),
3010(228, 'UA', 'Ukraine', 'Kiev', 0),
3011(229, 'UG', 'Uganda', 'Kampala', 0),
3012(230, 'UM', 'United States Minor Outlying Islands', '', 0),
3013(231, 'US', 'United States', 'Washington', 0),
3014(232, 'UY', 'Uruguay', 'Montevideo', 0),
3015(233, 'UZ', 'Uzbekistan', 'Tashkent', 0),
3016(234, 'VA', 'Vatican', 'Vatican City', 0),
3017(235, 'VC', 'Saint Vincent and the Grenadines', 'Kingstown', 0),
3018(236, 'VE', 'Venezuela', 'Caracas', 0),
3019(237, 'VG', 'British Virgin Islands', 'Road Town', 0),
3020(238, 'VI', 'U.S. Virgin Islands', 'Charlotte Amalie', 0),
3021(239, 'VN', 'Vietnam', 'Hanoi', 0),
3022(240, 'VU', 'Vanuatu', 'Port Vila', 0),
3023(241, 'WF', 'Wallis and Futuna', 'Matâ''Utu', 0),
3024(242, 'WS', 'Samoa', 'Apia', 0),
3025(243, 'YE', 'Yemen', 'San‘a’', 0),
3026(244, 'YT', 'Mayotte', 'Mamoudzou', 0),
3027(245, 'ZA', 'South Africa', 'Pretoria', 0),
3028(246, 'ZM', 'Zambia', 'Lusaka', 0),
3029(247, 'ZW', 'Zimbabwe', 'Harare', 0),
3030(248, 'XK', 'Kosovo', 'Pristina', 0),
3031(249, 'SS', 'South Sudan', 'Juba', 0);
3032
3033-- --------------------------------------------------------
3034
3035--
3036-- Table structure for table `externalapp`
3037--
3038
3039CREATE TABLE IF NOT EXISTS `externalapp` (
3040 `id` int(11) NOT NULL,
3041 `name` varchar(255) NOT NULL,
3042 `url` varchar(255) NOT NULL
3043) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Info on external apps(mobile) that work with your deployment';
3044
3045--
3046-- Dumping data for table `externalapp`
3047--
3048
3049INSERT INTO `externalapp` (`id`, `name`, `url`) VALUES
3050(1, 'iPhone', 'http://download.ushahidi.com/track_download.php?download=ios'),
3051(2, 'Android', 'http://download.ushahidi.com/track_download.php?download=android');
3052
3053-- --------------------------------------------------------
3054
3055--
3056-- Table structure for table `feed`
3057--
3058
3059CREATE TABLE IF NOT EXISTS `feed` (
3060 `id` int(11) unsigned NOT NULL,
3061 `feed_name` varchar(255) DEFAULT NULL,
3062 `feed_url` varchar(255) DEFAULT NULL,
3063 `feed_cache` text,
3064 `feed_active` tinyint(4) DEFAULT '1',
3065 `feed_update` int(11) NOT NULL DEFAULT '0'
3066) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Information about RSS Feeds a deployment subscribes to';
3067
3068-- --------------------------------------------------------
3069
3070--
3071-- Table structure for table `feed_item`
3072--
3073
3074CREATE TABLE IF NOT EXISTS `feed_item` (
3075 `id` bigint(20) unsigned NOT NULL,
3076 `feed_id` int(11) unsigned NOT NULL,
3077 `location_id` bigint(20) unsigned DEFAULT '0',
3078 `incident_id` bigint(20) unsigned NOT NULL DEFAULT '0',
3079 `item_title` varchar(255) DEFAULT NULL,
3080 `item_description` text,
3081 `item_link` varchar(255) DEFAULT NULL,
3082 `item_date` datetime DEFAULT NULL
3083) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores feed items pulled from each RSS Feed';
3084
3085-- --------------------------------------------------------
3086
3087--
3088-- Table structure for table `feed_item_category`
3089--
3090
3091CREATE TABLE IF NOT EXISTS `feed_item_category` (
3092 `id` int(11) NOT NULL,
3093 `feed_item_id` bigint(20) unsigned NOT NULL DEFAULT '0',
3094 `category_id` int(11) unsigned NOT NULL DEFAULT '0'
3095) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores fetched feed items categories';
3096
3097-- --------------------------------------------------------
3098
3099--
3100-- Table structure for table `form`
3101--
3102
3103CREATE TABLE IF NOT EXISTS `form` (
3104 `id` int(11) NOT NULL,
3105 `form_title` varchar(200) NOT NULL,
3106 `form_description` text,
3107 `form_active` tinyint(4) DEFAULT '1',
3108 `report_title_name` varchar(200) DEFAULT NULL,
3109 `description_name` varchar(200) DEFAULT NULL,
3110 `description_active` tinyint(4) DEFAULT '1'
3111) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Stores all report submission forms created(default+custom)';
3112
3113--
3114-- Dumping data for table `form`
3115--
3116
3117INSERT INTO `form` (`id`, `form_title`, `form_description`, `form_active`, `report_title_name`, `description_name`, `description_active`) VALUES
3118(1, 'Student Report', 'Default form, for report entry', 1, NULL, NULL, 0);
3119
3120-- --------------------------------------------------------
3121
3122--
3123-- Table structure for table `form_field`
3124--
3125
3126CREATE TABLE IF NOT EXISTS `form_field` (
3127 `id` int(11) NOT NULL,
3128 `form_id` int(11) NOT NULL DEFAULT '1',
3129 `field_name` varchar(200) DEFAULT NULL,
3130 `field_description` text,
3131 `field_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1 - TEXTFIELD, 2 - TEXTAREA (FREETEXT), 3 - DATE, 4 - PASSWORD, 5 - RADIO, 6 - CHECKBOX',
3132 `field_required` tinyint(4) DEFAULT '0',
3133 `field_position` tinyint(4) NOT NULL DEFAULT '0',
3134 `field_default` text,
3135 `field_maxlength` int(11) NOT NULL DEFAULT '0',
3136 `field_width` smallint(6) NOT NULL DEFAULT '0',
3137 `field_height` tinyint(4) DEFAULT '5',
3138 `field_isdate` tinyint(4) NOT NULL DEFAULT '0',
3139 `field_ispublic_visible` tinyint(4) NOT NULL DEFAULT '0',
3140 `field_ispublic_submit` tinyint(4) NOT NULL DEFAULT '0'
3141) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COMMENT='Stores all custom form fields created by users';
3142
3143--
3144-- Dumping data for table `form_field`
3145--
3146
3147INSERT INTO `form_field` (`id`, `form_id`, `field_name`, `field_description`, `field_type`, `field_required`, `field_position`, `field_default`, `field_maxlength`, `field_width`, `field_height`, `field_isdate`, `field_ispublic_visible`, `field_ispublic_submit`) VALUES
3148(1, 1, 'Name', '', 1, 1, 1, '', 0, 0, 5, 0, 0, 0),
3149(2, 1, 'Age', '', 1, 1, 2, '', 0, 0, 5, 0, 0, 0),
3150(3, 1, 'Gender', '', 7, 0, 3, 'Male,Female,Other', 0, 0, 5, 0, 0, 0),
3151(4, 1, 'Does the child know ASL?', '', 5, 1, 4, 'Yes,No,Not very well', 0, 0, 5, 0, 0, 0),
3152(5, 1, 'Does the child go to a school?', '', 5, 1, 5, 'Yes,No', 0, 0, 5, 0, 0, 0),
3153(6, 1, 'Previous PCVs teaching', 'Was the child taught by any PCV previously? If yes, give their names.', 1, 0, 6, '', 0, 0, 5, 0, 0, 0),
3154(12, 1, 'How much has been taught to the child till now?', 'State topics, subjects etc. covered.', 2, 0, 7, '', 0, 0, 5, 0, 0, 0),
3155(11, 1, 'Educational Requirements', 'What needs to be taught to the child at this level? Also, mention if ASL is to be taught as well.', 2, 1, 8, '', 0, 0, 5, 0, 0, 0),
3156(13, 1, 'Any Healthcare Requirements', 'Does the child complain of any disease or ailment? Do you think s/he needs a health check-up?', 2, 0, 10, '', 0, 0, 5, 0, 0, 0),
3157(10, 1, 'Books or stationery required', 'If yes, state the particular items required and their quantities.', 2, 0, 9, '', 0, 0, 5, 0, 0, 0),
3158(14, 1, 'Any other requirements or remarks', '', 1, 0, 11, '', 0, 0, 5, 0, 0, 0);
3159
3160-- --------------------------------------------------------
3161
3162--
3163-- Table structure for table `form_field_option`
3164--
3165
3166CREATE TABLE IF NOT EXISTS `form_field_option` (
3167 `id` int(11) NOT NULL,
3168 `form_field_id` int(11) NOT NULL DEFAULT '0',
3169 `option_name` varchar(200) DEFAULT NULL,
3170 `option_value` text
3171) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT='Options related to custom form fields';
3172
3173--
3174-- Dumping data for table `form_field_option`
3175--
3176
3177INSERT INTO `form_field_option` (`id`, `form_field_id`, `option_name`, `option_value`) VALUES
3178(1, 1, 'field_datatype', 'text'),
3179(2, 1, 'field_hidden', '0'),
3180(3, 2, 'field_datatype', 'numeric'),
3181(4, 2, 'field_hidden', '0'),
3182(5, 6, 'field_datatype', 'text'),
3183(6, 6, 'field_hidden', '0'),
3184(15, 12, 'field_datatype', 'text'),
3185(14, 11, 'field_datatype', 'text'),
3186(13, 10, 'field_datatype', 'text'),
3187(16, 13, 'field_datatype', 'text'),
3188(17, 14, 'field_datatype', 'text'),
3189(18, 14, 'field_hidden', '0');
3190
3191-- --------------------------------------------------------
3192
3193--
3194-- Table structure for table `form_response`
3195--
3196
3197CREATE TABLE IF NOT EXISTS `form_response` (
3198 `id` bigint(20) NOT NULL,
3199 `form_field_id` int(11) NOT NULL,
3200 `incident_id` bigint(20) unsigned NOT NULL,
3201 `form_response` text NOT NULL
3202) ENGINE=MyISAM AUTO_INCREMENT=333 DEFAULT CHARSET=utf8 COMMENT='Stores responses to custom form fields';
3203
3204--
3205-- Dumping data for table `form_response`
3206--
3207
3208INSERT INTO `form_response` (`id`, `form_field_id`, `incident_id`, `form_response`) VALUES
3209(50, 14, 20, '---'),
3210(49, 13, 20, '---'),
3211(48, 10, 20, '---'),
3212(47, 11, 20, '---'),
3213(46, 12, 20, '---'),
3214(45, 6, 20, 'none'),
3215(44, 5, 20, 'No'),
3216(43, 4, 20, 'No'),
3217(42, 3, 20, 'Female'),
3218(41, 2, 20, '4'),
3219(40, 1, 20, 'princy'),
3220(51, 1, 23, 'valeria johns'),
3221(52, 2, 23, '4'),
3222(53, 3, 23, 'Female'),
3223(54, 4, 23, 'No'),
3224(55, 5, 23, 'No'),
3225(56, 6, 23, 'none'),
3226(57, 12, 23, 'test'),
3227(58, 11, 23, 'test'),
3228(59, 10, 23, 'test'),
3229(60, 13, 23, 'test'),
3230(61, 14, 23, 'test'),
3231(102, 11, 29, 'ASL needed.\nMaths,science and english for 3rd grade.'),
3232(101, 12, 29, 'Primary ed'),
3233(100, 6, 29, 'Tania Joseph'),
3234(99, 5, 29, 'Yes'),
3235(98, 4, 29, 'No'),
3236(97, 3, 29, 'Female'),
3237(96, 2, 29, '7'),
3238(95, 1, 29, 'Mary'),
3239(103, 10, 29, 'pencils, copies, books'),
3240(104, 13, 29, 'yes, she has mild fever'),
3241(105, 14, 29, 'no'),
3242(106, 1, 4, 'sarah'),
3243(107, 2, 4, '4'),
3244(108, 3, 4, 'Female'),
3245(109, 4, 4, 'Not very well'),
3246(110, 5, 4, 'Yes'),
3247(111, 6, 4, ''),
3248(112, 12, 4, ''),
3249(113, 11, 4, 'test'),
3250(114, 10, 4, ''),
3251(115, 13, 4, ''),
3252(116, 14, 4, ''),
3253(117, 1, 3, 'Tom'),
3254(118, 2, 3, '8'),
3255(119, 3, 3, 'Male'),
3256(120, 4, 3, 'Yes'),
3257(121, 5, 3, 'Yes'),
3258(122, 6, 3, 'sample'),
3259(123, 12, 3, 'samplesamplesamplesamplesamplesample'),
3260(124, 11, 3, 'samplesamplesamplesample'),
3261(125, 10, 3, 'samplesample'),
3262(126, 13, 3, 'samplesample'),
3263(127, 14, 3, 'samplesample'),
3264(128, 1, 1, 'sample'),
3265(129, 2, 1, '5'),
3266(130, 3, 1, 'Male'),
3267(131, 4, 1, 'Not very well'),
3268(132, 5, 1, 'No'),
3269(133, 6, 1, ''),
3270(134, 12, 1, ''),
3271(135, 11, 1, 'samplesample'),
3272(136, 10, 1, ''),
3273(137, 13, 1, ''),
3274(138, 14, 1, ''),
3275(139, 1, 2, 'anothersample'),
3276(140, 2, 2, '9'),
3277(141, 3, 2, 'Male'),
3278(142, 4, 2, 'Not very well'),
3279(143, 5, 2, 'No'),
3280(144, 6, 2, 'anothersample'),
3281(145, 12, 2, 'anothersampleanothersampleanothersample'),
3282(146, 11, 2, 'anothersampleanothersampleanothersample'),
3283(147, 10, 2, ''),
3284(148, 13, 2, 'anothersample'),
3285(149, 14, 2, ''),
3286(320, 3, 47, 'Male'),
3287(319, 2, 47, '9'),
3288(318, 1, 47, 'anothersample'),
3289(316, 5, 46, 'Yes'),
3290(317, 11, 46, 'test'),
3291(315, 4, 46, 'Not very well'),
3292(314, 3, 46, 'Female'),
3293(312, 1, 46, 'sarah'),
3294(313, 2, 46, '4'),
3295(311, 14, 45, 'samplesample'),
3296(310, 13, 45, 'samplesample'),
3297(309, 10, 45, 'samplesample'),
3298(308, 11, 45, 'samplesamplesamplesample'),
3299(307, 12, 45, 'samplesamplesamplesamplesamplesample'),
3300(306, 6, 45, 'sample'),
3301(305, 5, 45, 'Yes'),
3302(304, 4, 45, 'Yes'),
3303(303, 3, 45, 'Male'),
3304(302, 2, 45, '8'),
3305(301, 1, 45, 'Tom'),
3306(300, 14, 44, '---'),
3307(299, 13, 44, '---'),
3308(298, 10, 44, '---'),
3309(297, 11, 44, '---'),
3310(296, 12, 44, '---'),
3311(295, 6, 44, 'none'),
3312(294, 5, 44, 'No'),
3313(293, 4, 44, 'No'),
3314(292, 3, 44, 'Female'),
3315(291, 2, 44, '4'),
3316(290, 1, 44, 'princy'),
3317(288, 13, 43, 'test'),
3318(289, 14, 43, 'test'),
3319(286, 11, 43, 'test'),
3320(287, 10, 43, 'test'),
3321(284, 6, 43, 'none'),
3322(285, 12, 43, 'test'),
3323(283, 5, 43, 'No'),
3324(282, 4, 43, 'No'),
3325(281, 3, 43, 'Female'),
3326(280, 2, 43, '4'),
3327(279, 1, 43, 'valeria johns'),
3328(278, 14, 42, 'no'),
3329(277, 13, 42, 'yes, she has mild fever'),
3330(276, 10, 42, 'pencils, copies, books'),
3331(275, 11, 42, 'ASL needed.\nMaths,science and english for 3rd grade.'),
3332(274, 12, 42, 'Primary ed'),
3333(273, 6, 42, 'Tania Joseph'),
3334(272, 5, 42, 'Yes'),
3335(271, 4, 42, 'No'),
3336(270, 3, 42, 'Female'),
3337(269, 2, 42, '7'),
3338(268, 1, 42, 'Mary'),
3339(321, 4, 47, 'Not very well'),
3340(322, 5, 47, 'No'),
3341(323, 6, 47, 'anothersample'),
3342(324, 12, 47, 'anothersampleanothersampleanothersample'),
3343(325, 11, 47, 'anothersampleanothersampleanothersample'),
3344(326, 13, 47, 'anothersample'),
3345(327, 1, 48, 'sample'),
3346(328, 2, 48, '5'),
3347(329, 3, 48, 'Male'),
3348(330, 4, 48, 'Not very well'),
3349(331, 5, 48, 'No'),
3350(332, 11, 48, 'samplesample');
3351
3352-- --------------------------------------------------------
3353
3354--
3355-- Table structure for table `geometry`
3356--
3357
3358CREATE TABLE IF NOT EXISTS `geometry` (
3359 `id` int(11) unsigned NOT NULL,
3360 `incident_id` bigint(20) unsigned NOT NULL,
3361 `geometry` geometry NOT NULL,
3362 `geometry_label` varchar(150) DEFAULT NULL,
3363 `geometry_comment` varchar(255) DEFAULT NULL,
3364 `geometry_color` varchar(20) DEFAULT NULL,
3365 `geometry_strokewidth` varchar(5) DEFAULT NULL
3366) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores map geometries i.e polygons, lines etc';
3367
3368-- --------------------------------------------------------
3369
3370--
3371-- Table structure for table `incident`
3372--
3373
3374CREATE TABLE IF NOT EXISTS `incident` (
3375 `id` bigint(20) unsigned NOT NULL,
3376 `location_id` bigint(20) unsigned NOT NULL,
3377 `form_id` int(11) NOT NULL DEFAULT '1',
3378 `locale` varchar(10) NOT NULL DEFAULT 'en_US',
3379 `user_id` int(11) unsigned DEFAULT NULL,
3380 `incident_title` varchar(255) DEFAULT NULL,
3381 `incident_description` longtext,
3382 `incident_date` datetime DEFAULT NULL,
3383 `incident_mode` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1 - WEB, 2 - SMS, 3 - EMAIL, 4 - TWITTER',
3384 `incident_active` tinyint(4) NOT NULL DEFAULT '0',
3385 `incident_verified` tinyint(4) NOT NULL DEFAULT '0',
3386 `incident_dateadd` datetime DEFAULT NULL,
3387 `incident_dateadd_gmt` datetime DEFAULT NULL,
3388 `incident_datemodify` datetime DEFAULT NULL,
3389 `incident_alert_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0 - Not Tagged for Sending, 1 - Tagged for Sending, 2 - Alerts Have Been Sent',
3390 `incident_zoom` tinyint(4) DEFAULT NULL
3391) ENGINE=MyISAM AUTO_INCREMENT=49 DEFAULT CHARSET=utf8 COMMENT='Stores reports submitted';
3392
3393--
3394-- Dumping data for table `incident`
3395--
3396
3397INSERT INTO `incident` (`id`, `location_id`, `form_id`, `locale`, `user_id`, `incident_title`, `incident_description`, `incident_date`, `incident_mode`, `incident_active`, `incident_verified`, `incident_dateadd`, `incident_dateadd_gmt`, `incident_datemodify`, `incident_alert_status`, `incident_zoom`) VALUES
3398(1, 1, 1, 'en_US', 1, 'Hello Ushahidi!', NULL, '2012-04-04 12:54:00', 1, 1, 1, NULL, NULL, '2015-06-05 23:32:50', 1, 6),
3399(47, 47, 1, 'en_US', 0, 'milton', '', '2015-06-05 17:18:00', 1, 1, 1, '2015-06-05 17:19:29', NULL, NULL, 0, NULL),
3400(2, 2, 1, 'en_US', 1, 'test', NULL, '2015-06-05 17:18:00', 1, 1, 1, '2015-06-05 17:19:29', NULL, '2015-06-05 23:31:08', 1, 7),
3401(3, 3, 1, 'en_US', 0, 'Tom', NULL, '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 20:34:54', NULL, '2015-06-05 23:29:44', 1, 6),
3402(4, 4, 1, 'en_US', 0, 'Sarah', NULL, '2015-03-03 10:10:00', 1, 1, 1, '2015-06-05 20:34:54', NULL, '2015-06-05 23:28:43', 1, 6),
3403(44, 44, 1, 'en_US', 0, 'Paula', '', '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 23:06:48', NULL, NULL, 0, NULL),
3404(23, 23, 1, 'en_US', 0, 'Valeria', '', '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 23:10:23', NULL, NULL, 0, NULL),
3405(20, 20, 1, 'en_US', 0, 'Princy', '', '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 23:06:48', NULL, NULL, 0, NULL),
3406(46, 46, 1, 'en_US', 0, 'Samaira', '', '2015-03-03 10:10:00', 1, 1, 1, '2015-06-05 20:34:54', NULL, NULL, 1, NULL),
3407(29, 29, 1, 'en_US', 1, 'Mary Jones Diaz', NULL, '2015-06-05 23:24:00', 1, 1, 1, '2015-06-05 23:27:03', NULL, NULL, 1, 6),
3408(45, 45, 1, 'en_US', 0, 'Todd', '', '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 20:34:54', NULL, NULL, 0, NULL),
3409(43, 43, 1, 'en_US', 0, 'Vannessa', '', '2015-05-02 01:06:00', 1, 1, 1, '2015-06-05 23:10:23', NULL, NULL, 0, NULL),
3410(42, 42, 1, 'en_US', 0, 'Macy', '', '2015-06-05 23:24:00', 1, 1, 1, '2015-06-05 23:27:03', NULL, NULL, 0, NULL),
3411(48, 48, 1, 'en_US', 0, 'ruth', '', '2012-04-04 12:54:00', 1, 1, 1, '2015-06-06 08:54:33', NULL, NULL, 0, NULL);
3412
3413-- --------------------------------------------------------
3414
3415--
3416-- Table structure for table `incident_category`
3417--
3418
3419CREATE TABLE IF NOT EXISTS `incident_category` (
3420 `id` int(11) NOT NULL,
3421 `incident_id` bigint(20) unsigned NOT NULL DEFAULT '0',
3422 `category_id` int(11) unsigned NOT NULL DEFAULT '0'
3423) ENGINE=MyISAM AUTO_INCREMENT=82 DEFAULT CHARSET=utf8 COMMENT='Stores submitted reports categories';
3424
3425--
3426-- Dumping data for table `incident_category`
3427--
3428
3429INSERT INTO `incident_category` (`id`, `incident_id`, `category_id`) VALUES
3430(41, 1, 1),
3431(39, 2, 3),
3432(37, 3, 3),
3433(30, 29, 1),
3434(33, 29, 6),
3435(23, 23, 3),
3436(31, 29, 2),
3437(21, 20, 3),
3438(32, 29, 3),
3439(22, 23, 1),
3440(34, 29, 4),
3441(35, 4, 1),
3442(36, 4, 6),
3443(40, 2, 6),
3444(80, 47, 6),
3445(79, 47, 3),
3446(78, 46, 6),
3447(77, 46, 1),
3448(76, 45, 3),
3449(75, 44, 3),
3450(74, 43, 3),
3451(73, 43, 1),
3452(72, 42, 4),
3453(71, 42, 6),
3454(70, 42, 3),
3455(69, 42, 2),
3456(68, 42, 1),
3457(81, 48, 1);
3458
3459-- --------------------------------------------------------
3460
3461--
3462-- Table structure for table `incident_lang`
3463--
3464
3465CREATE TABLE IF NOT EXISTS `incident_lang` (
3466 `id` bigint(20) unsigned NOT NULL,
3467 `incident_id` bigint(20) unsigned NOT NULL,
3468 `locale` varchar(10) DEFAULT NULL,
3469 `incident_title` varchar(255) DEFAULT NULL,
3470 `incident_description` longtext
3471) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Holds translations for report titles and descriptions';
3472
3473-- --------------------------------------------------------
3474
3475--
3476-- Table structure for table `incident_person`
3477--
3478
3479CREATE TABLE IF NOT EXISTS `incident_person` (
3480 `id` bigint(20) unsigned NOT NULL,
3481 `incident_id` bigint(20) unsigned DEFAULT NULL,
3482 `person_first` varchar(200) DEFAULT NULL,
3483 `person_last` varchar(200) DEFAULT NULL,
3484 `person_email` varchar(120) DEFAULT NULL,
3485 `person_phone` varchar(60) DEFAULT NULL,
3486 `person_ip` varchar(50) DEFAULT NULL,
3487 `person_date` datetime DEFAULT NULL
3488) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COMMENT='Holds information provided by people who submit reports';
3489
3490--
3491-- Dumping data for table `incident_person`
3492--
3493
3494INSERT INTO `incident_person` (`id`, `incident_id`, `person_first`, `person_last`, `person_email`, `person_phone`, `person_ip`, `person_date`) VALUES
3495(14, 2, '', '', '', NULL, NULL, '2015-06-05 23:31:09'),
3496(5, 20, '---', '---', 'divya@ushaidi.com', NULL, NULL, '2015-06-05 23:06:53'),
3497(6, 23, 'test', '---', 'divya@ushaidi.com', NULL, NULL, '2015-06-05 23:10:26'),
3498(10, 29, 'dana', 'scott', 'dana@scott.com', NULL, NULL, '2015-06-05 23:27:03'),
3499(11, 4, '', '', '', NULL, NULL, '2015-06-05 23:28:43'),
3500(12, 3, 'samplesample', '', '', NULL, NULL, '2015-06-05 23:29:44'),
3501(15, 1, '', '', '', NULL, NULL, '2015-06-05 23:32:50'),
3502(27, 45, 'samplesample', NULL, NULL, NULL, NULL, '2015-06-05 20:34:54'),
3503(26, 44, '---', '---', 'divya@ushaidi.com', NULL, NULL, '2015-06-05 23:06:48'),
3504(25, 43, 'test', 'test', 'divya@ushaidi.com', NULL, NULL, '2015-06-05 23:10:23'),
3505(24, 42, 'dana', 'dana', 'dana@scott.com', NULL, NULL, '2015-06-05 23:27:03');
3506
3507-- --------------------------------------------------------
3508
3509--
3510-- Table structure for table `layer`
3511--
3512
3513CREATE TABLE IF NOT EXISTS `layer` (
3514 `id` int(11) NOT NULL,
3515 `layer_name` varchar(255) DEFAULT NULL,
3516 `layer_url` varchar(255) DEFAULT NULL,
3517 `layer_file` varchar(100) DEFAULT NULL,
3518 `layer_color` varchar(20) DEFAULT NULL,
3519 `layer_visible` tinyint(4) NOT NULL DEFAULT '1'
3520) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Holds static layer information';
3521
3522-- --------------------------------------------------------
3523
3524--
3525-- Table structure for table `level`
3526--
3527
3528CREATE TABLE IF NOT EXISTS `level` (
3529 `id` int(11) unsigned NOT NULL,
3530 `level_title` varchar(200) DEFAULT NULL,
3531 `level_description` varchar(200) DEFAULT NULL,
3532 `level_weight` tinyint(4) NOT NULL
3533) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Stores level of trust assigned to reporters of the platform';
3534
3535--
3536-- Dumping data for table `level`
3537--
3538
3539INSERT INTO `level` (`id`, `level_title`, `level_description`, `level_weight`) VALUES
3540(1, 'SPAM + Delete', 'SPAM + Delete', -2),
3541(2, 'SPAM', 'SPAM', -1),
3542(3, 'Untrusted', 'Untrusted', 0),
3543(4, 'Trusted', 'Trusted', 1),
3544(5, 'Trusted + Verify', 'Trusted + Verify', 2);
3545
3546-- --------------------------------------------------------
3547
3548--
3549-- Table structure for table `location`
3550--
3551
3552CREATE TABLE IF NOT EXISTS `location` (
3553 `id` bigint(20) unsigned NOT NULL,
3554 `location_name` varchar(255) DEFAULT NULL,
3555 `country_id` int(11) NOT NULL DEFAULT '0',
3556 `latitude` double NOT NULL DEFAULT '0',
3557 `longitude` double NOT NULL DEFAULT '0',
3558 `location_visible` tinyint(4) NOT NULL DEFAULT '1',
3559 `location_date` datetime DEFAULT NULL
3560) ENGINE=MyISAM AUTO_INCREMENT=49 DEFAULT CHARSET=utf8 COMMENT='Stores location information';
3561
3562--
3563-- Dumping data for table `location`
3564--
3565
3566INSERT INTO `location` (`id`, `location_name`, `country_id`, `latitude`, `longitude`, `location_visible`, `location_date`) VALUES
3567(1, 'Guyana', 94, 2.912633, -58.487881, 1, '2015-06-05 23:32:50'),
3568(2, 'anothersample', 94, -1.2873, 36.821451, 1, '2015-06-05 23:31:08'),
3569(3, 'ABC, Guyana', 94, 7.287, -59.821, 1, '2015-06-05 23:29:44'),
3570(4, 'ABCABC, Guyana', 94, 2.55, -59.216667, 1, '2015-06-05 23:28:43'),
3571(47, 'anothersample', 0, -1.2873, 36.821451, 1, '2015-06-06 08:54:33'),
3572(29, 'ds lane', 94, 4.860416, -58.93018, 1, '2015-06-05 23:27:03'),
3573(23, 'ABC, Guyana', 75, 7.287, -59.821, 1, '2015-06-05 23:10:23'),
3574(20, 'ABC, Guyana', 75, 7.287, -59.821, 1, '2015-06-05 23:06:48'),
3575(46, 'ABCABC, Guyana', 0, 2.55, -59.216667, 1, '2015-06-06 08:54:33'),
3576(45, 'ABC, Guyana', 75, 7.287, -59.821, 1, '2015-06-06 08:54:33'),
3577(44, 'ABC, Guyana', 75, 7.287, -59.821, 1, '2015-06-06 08:54:33'),
3578(43, 'ABC, Guyana', 75, 7.287, -59.821, 1, '2015-06-06 08:54:33'),
3579(42, 'ds lane', 231, 4.860416, -58.93018, 1, '2015-06-06 08:54:33'),
3580(48, 'Guyana', 94, 2.912633, -58.487881, 1, '2015-06-06 08:54:33');
3581
3582-- --------------------------------------------------------
3583
3584--
3585-- Table structure for table `maintenance`
3586--
3587
3588CREATE TABLE IF NOT EXISTS `maintenance` (
3589 `allowed_ip` varchar(15) NOT NULL
3590) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Puts a site in maintenance mode if data exists in this table';
3591
3592-- --------------------------------------------------------
3593
3594--
3595-- Table structure for table `media`
3596--
3597
3598CREATE TABLE IF NOT EXISTS `media` (
3599 `id` bigint(20) unsigned NOT NULL,
3600 `location_id` bigint(20) unsigned DEFAULT NULL,
3601 `incident_id` bigint(20) unsigned DEFAULT NULL,
3602 `message_id` bigint(20) unsigned DEFAULT NULL,
3603 `badge_id` int(11) DEFAULT NULL,
3604 `media_type` tinyint(4) DEFAULT NULL COMMENT '1 - IMAGES, 2 - VIDEO, 3 - AUDIO, 4 - NEWS, 5 - PODCAST',
3605 `media_title` varchar(255) DEFAULT NULL,
3606 `media_description` longtext,
3607 `media_link` varchar(255) DEFAULT NULL,
3608 `media_medium` varchar(255) DEFAULT NULL,
3609 `media_thumb` varchar(255) DEFAULT NULL,
3610 `media_date` datetime DEFAULT NULL,
3611 `media_active` tinyint(4) NOT NULL DEFAULT '1'
3612) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores any media submitted along with a report';
3613
3614-- --------------------------------------------------------
3615
3616--
3617-- Table structure for table `message`
3618--
3619
3620CREATE TABLE IF NOT EXISTS `message` (
3621 `id` bigint(20) unsigned NOT NULL,
3622 `parent_id` bigint(20) DEFAULT '0',
3623 `incident_id` bigint(20) unsigned DEFAULT '0',
3624 `user_id` int(11) unsigned DEFAULT '0',
3625 `reporter_id` bigint(20) unsigned DEFAULT NULL,
3626 `service_messageid` varchar(100) DEFAULT NULL,
3627 `message_from` varchar(100) DEFAULT NULL,
3628 `message_to` varchar(100) DEFAULT NULL,
3629 `message` text,
3630 `message_detail` text,
3631 `message_type` tinyint(4) DEFAULT '1' COMMENT '1 - INBOX, 2 - OUTBOX (From Admin), 3 - DELETED',
3632 `message_date` datetime DEFAULT NULL,
3633 `message_level` tinyint(4) DEFAULT '0' COMMENT '0 - UNREAD, 1 - READ, 99 - SPAM',
3634 `latitude` double DEFAULT NULL,
3635 `longitude` double DEFAULT NULL
3636) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores tweets, emails and SMS messages';
3637
3638-- --------------------------------------------------------
3639
3640--
3641-- Table structure for table `openid`
3642--
3643
3644CREATE TABLE IF NOT EXISTS `openid` (
3645 `id` int(11) NOT NULL,
3646 `user_id` int(11) unsigned NOT NULL,
3647 `openid` varchar(255) NOT NULL,
3648 `openid_email` varchar(127) NOT NULL,
3649 `openid_server` varchar(255) NOT NULL,
3650 `openid_date` datetime NOT NULL
3651) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores users’ openid information';
3652
3653-- --------------------------------------------------------
3654
3655--
3656-- Table structure for table `opportunities`
3657--
3658
3659CREATE TABLE IF NOT EXISTS `opportunities` (
3660 `id` int(11) NOT NULL,
3661 `resource_available` varchar(75) NOT NULL,
3662 `pcv_name` varchar(75) NOT NULL,
3663 `available_from` datetime DEFAULT NULL,
3664 `available_until` datetime DEFAULT NULL,
3665 `contact` varchar(75) NOT NULL,
3666 `add_info` text
3667) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores resources available posted by user';
3668
3669-- --------------------------------------------------------
3670
3671--
3672-- Table structure for table `page`
3673--
3674
3675CREATE TABLE IF NOT EXISTS `page` (
3676 `id` int(11) NOT NULL,
3677 `page_title` varchar(255) NOT NULL,
3678 `page_description` longtext,
3679 `page_tab` varchar(100) NOT NULL,
3680 `page_active` tinyint(4) NOT NULL DEFAULT '0'
3681) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Stores user created pages';
3682
3683--
3684-- Dumping data for table `page`
3685--
3686
3687INSERT INTO `page` (`id`, `page_title`, `page_description`, `page_tab`, `page_active`) VALUES
3688(1, 'Guyana Peace Corps', '<p>Initial content</p>', 'Guidelines for PCVs', 0),
3689(3, 'Resources', '<p>The page to add Wiki<br /></p>', 'Resources', 1);
3690
3691-- --------------------------------------------------------
3692
3693--
3694-- Table structure for table `permissions`
3695--
3696
3697CREATE TABLE IF NOT EXISTS `permissions` (
3698 `id` int(11) NOT NULL,
3699 `name` varchar(32) NOT NULL
3700) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1 COMMENT='Stores permissions used for access control';
3701
3702--
3703-- Dumping data for table `permissions`
3704--
3705
3706INSERT INTO `permissions` (`id`, `name`) VALUES
3707(1, 'reports_view'),
3708(2, 'reports_edit'),
3709(4, 'reports_comments'),
3710(5, 'reports_download'),
3711(6, 'reports_upload'),
3712(7, 'messages'),
3713(8, 'messages_reporters'),
3714(9, 'stats'),
3715(10, 'settings'),
3716(11, 'manage'),
3717(12, 'users'),
3718(13, 'manage_roles'),
3719(16, 'reports_verify'),
3720(17, 'reports_approve'),
3721(18, 'admin_ui'),
3722(19, 'member_ui'),
3723(20, 'delete_all_reports');
3724
3725-- --------------------------------------------------------
3726
3727--
3728-- Table structure for table `permissions_roles`
3729--
3730
3731CREATE TABLE IF NOT EXISTS `permissions_roles` (
3732 `role_id` int(11) NOT NULL,
3733 `permission_id` int(11) NOT NULL
3734) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores permissions assigned to roles';
3735
3736--
3737-- Dumping data for table `permissions_roles`
3738--
3739
3740INSERT INTO `permissions_roles` (`role_id`, `permission_id`) VALUES
3741(1, 14),
3742(2, 1),
3743(2, 2),
3744(2, 4),
3745(2, 5),
3746(2, 6),
3747(2, 7),
3748(2, 8),
3749(2, 9),
3750(2, 10),
3751(2, 11),
3752(2, 12),
3753(2, 14),
3754(2, 15),
3755(2, 16),
3756(2, 17),
3757(2, 18),
3758(3, 1),
3759(3, 2),
3760(3, 4),
3761(3, 5),
3762(3, 6),
3763(3, 7),
3764(3, 8),
3765(3, 9),
3766(3, 10),
3767(3, 11),
3768(3, 12),
3769(3, 13),
3770(3, 14),
3771(3, 15),
3772(3, 16),
3773(3, 17),
3774(3, 18),
3775(3, 20),
3776(4, 19);
3777
3778-- --------------------------------------------------------
3779
3780--
3781-- Table structure for table `plugin`
3782--
3783
3784CREATE TABLE IF NOT EXISTS `plugin` (
3785 `id` int(11) unsigned NOT NULL,
3786 `plugin_name` varchar(100) NOT NULL,
3787 `plugin_url` varchar(250) DEFAULT NULL,
3788 `plugin_description` text,
3789 `plugin_priority` tinyint(4) DEFAULT '0',
3790 `plugin_active` tinyint(4) DEFAULT '0',
3791 `plugin_installed` tinyint(4) DEFAULT '0'
3792) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Holds a list of all plugins installed on a deployment';
3793
3794--
3795-- Dumping data for table `plugin`
3796--
3797
3798INSERT INTO `plugin` (`id`, `plugin_name`, `plugin_url`, `plugin_description`, `plugin_priority`, `plugin_active`, `plugin_installed`) VALUES
3799(1, 'clickatell', NULL, NULL, 0, 0, 0),
3800(2, 'downloadreports', NULL, NULL, 0, 0, 0),
3801(3, 'frontlinesms', NULL, NULL, 0, 0, 0),
3802(4, 'sharing', NULL, NULL, 0, 0, 0),
3803(5, 'smssync', NULL, NULL, 0, 0, 0);
3804
3805-- --------------------------------------------------------
3806
3807--
3808-- Table structure for table `private_message`
3809--
3810
3811CREATE TABLE IF NOT EXISTS `private_message` (
3812 `id` int(11) NOT NULL,
3813 `parent_id` int(11) NOT NULL DEFAULT '0',
3814 `user_id` int(11) unsigned NOT NULL,
3815 `from_user_id` int(11) DEFAULT '0',
3816 `private_subject` varchar(255) NOT NULL,
3817 `private_message` text NOT NULL,
3818 `private_message_date` datetime NOT NULL,
3819 `private_message_new` tinyint(4) NOT NULL DEFAULT '1'
3820) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores private messages sent between Members';
3821
3822-- --------------------------------------------------------
3823
3824--
3825-- Table structure for table `rating`
3826--
3827
3828CREATE TABLE IF NOT EXISTS `rating` (
3829 `id` bigint(20) unsigned NOT NULL,
3830 `user_id` int(11) unsigned DEFAULT '0',
3831 `incident_id` bigint(20) unsigned DEFAULT NULL,
3832 `comment_id` bigint(20) unsigned DEFAULT NULL,
3833 `rating` tinyint(4) DEFAULT '0',
3834 `rating_ip` varchar(100) DEFAULT NULL,
3835 `rating_date` datetime DEFAULT NULL
3836) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores credibility ratings for reports and comments';
3837
3838-- --------------------------------------------------------
3839
3840--
3841-- Table structure for table `reporter`
3842--
3843
3844CREATE TABLE IF NOT EXISTS `reporter` (
3845 `id` bigint(20) unsigned NOT NULL,
3846 `location_id` bigint(20) unsigned DEFAULT NULL,
3847 `user_id` int(11) unsigned DEFAULT NULL,
3848 `service_id` int(10) unsigned DEFAULT NULL,
3849 `level_id` int(11) unsigned DEFAULT NULL,
3850 `service_account` varchar(255) DEFAULT NULL,
3851 `reporter_first` varchar(200) DEFAULT NULL,
3852 `reporter_last` varchar(200) DEFAULT NULL,
3853 `reporter_email` varchar(120) DEFAULT NULL,
3854 `reporter_phone` varchar(60) DEFAULT NULL,
3855 `reporter_ip` varchar(50) DEFAULT NULL,
3856 `reporter_date` datetime DEFAULT NULL
3857) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Information on report submitters via email, twitter and sms';
3858
3859-- --------------------------------------------------------
3860
3861--
3862-- Table structure for table `roles`
3863--
3864
3865CREATE TABLE IF NOT EXISTS `roles` (
3866 `id` int(11) unsigned NOT NULL,
3867 `name` varchar(32) NOT NULL,
3868 `description` varchar(255) NOT NULL,
3869 `access_level` tinyint(4) NOT NULL DEFAULT '0'
3870) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='Defines user access levels and privileges on a deployment';
3871
3872--
3873-- Dumping data for table `roles`
3874--
3875
3876INSERT INTO `roles` (`id`, `name`, `description`, `access_level`) VALUES
3877(1, 'login', 'Login privileges, granted after account confirmation', 0),
3878(2, 'admin', 'Administrative user, has access to almost everything.', 90),
3879(3, 'superadmin', 'Super administrative user, has access to everything.', 100),
3880(4, 'member', 'Regular user with access only to the member area', 10);
3881
3882-- --------------------------------------------------------
3883
3884--
3885-- Table structure for table `roles_users`
3886--
3887
3888CREATE TABLE IF NOT EXISTS `roles_users` (
3889 `user_id` int(11) unsigned NOT NULL,
3890 `role_id` int(11) unsigned NOT NULL
3891) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores roles assigned to users registered on a deployment';
3892
3893--
3894-- Dumping data for table `roles_users`
3895--
3896
3897INSERT INTO `roles_users` (`user_id`, `role_id`) VALUES
3898(1, 1),
3899(1, 2),
3900(1, 3);
3901
3902-- --------------------------------------------------------
3903
3904--
3905-- Table structure for table `scheduler`
3906--
3907
3908CREATE TABLE IF NOT EXISTS `scheduler` (
3909 `id` int(10) unsigned NOT NULL,
3910 `scheduler_name` varchar(100) NOT NULL,
3911 `scheduler_last` int(10) unsigned NOT NULL DEFAULT '0',
3912 `scheduler_weekday` smallint(6) NOT NULL DEFAULT '-1',
3913 `scheduler_day` smallint(6) NOT NULL DEFAULT '-1',
3914 `scheduler_hour` smallint(6) NOT NULL DEFAULT '-1',
3915 `scheduler_minute` smallint(6) NOT NULL,
3916 `scheduler_controller` varchar(100) NOT NULL,
3917 `scheduler_active` tinyint(4) NOT NULL DEFAULT '1'
3918) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Stores schedules for cron jobs';
3919
3920--
3921-- Dumping data for table `scheduler`
3922--
3923
3924INSERT INTO `scheduler` (`id`, `scheduler_name`, `scheduler_last`, `scheduler_weekday`, `scheduler_day`, `scheduler_hour`, `scheduler_minute`, `scheduler_controller`, `scheduler_active`) VALUES
3925(1, 'Feeds', 1438268602, -1, -1, -1, 0, 's_feeds', 1),
3926(2, 'Alerts', 1433524755, -1, -1, -1, -1, 's_alerts', 1),
3927(3, 'Email', 1433524102, -1, -1, -1, 0, 's_email', 1),
3928(4, 'Twitter', 1433524102, -1, -1, -1, 0, 's_twitter', 1),
3929(5, 'Cleanup', 1433524102, -1, -1, -1, 0, 's_cleanup', 1);
3930
3931-- --------------------------------------------------------
3932
3933--
3934-- Table structure for table `scheduler_log`
3935--
3936
3937CREATE TABLE IF NOT EXISTS `scheduler_log` (
3938 `id` bigint(20) unsigned NOT NULL,
3939 `scheduler_id` int(10) unsigned NOT NULL,
3940 `scheduler_status` varchar(20) DEFAULT NULL,
3941 `scheduler_date` int(10) unsigned NOT NULL
3942) ENGINE=MyISAM AUTO_INCREMENT=42 DEFAULT CHARSET=utf8 COMMENT='Stores a log of scheduler actions';
3943
3944--
3945-- Dumping data for table `scheduler_log`
3946--
3947
3948INSERT INTO `scheduler_log` (`id`, `scheduler_id`, `scheduler_status`, `scheduler_date`) VALUES
3949(1, 1, '200', 1433523514),
3950(2, 2, '200', 1433523515),
3951(3, 3, '200', 1433523515),
3952(4, 4, '200', 1433523515),
3953(5, 5, '200', 1433523515),
3954(6, 1, '200', 1433524102),
3955(7, 2, '200', 1433524102),
3956(8, 3, '200', 1433524102),
3957(9, 4, '200', 1433524102),
3958(10, 5, '200', 1433524102),
3959(11, 2, '200', 1433524324),
3960(12, 2, '200', 1433524698),
3961(13, 2, '200', 1433524755),
3962(14, 1, '200', 1433527375),
3963(15, 1, '200', 1433532658),
3964(16, 1, '200', 1433534405),
3965(17, 1, '200', 1433542612),
3966(18, 1, '200', 1433545613),
3967(19, 1, '200', 1433580847),
3968(20, 1, '200', 1433584821),
3969(21, 1, '200', 1433788382),
3970(22, 1, '200', 1433977238),
3971(23, 1, '200', 1434062187),
3972(24, 1, '200', 1434064206),
3973(25, 1, '200', 1434067306),
3974(26, 1, '200', 1434351237),
3975(27, 1, '200', 1434352142),
3976(28, 1, '200', 1434361915),
3977(29, 1, '200', 1434363284),
3978(30, 1, '200', 1434366452),
3979(31, 1, '200', 1434370311),
3980(32, 1, '200', 1434374710),
3981(33, 1, '200', 1434381509),
3982(34, 1, '200', 1434387322),
3983(35, 1, '200', 1434387967),
3984(36, 1, '200', 1434393007),
3985(37, 1, '200', 1434394809),
3986(38, 1, '200', 1434398534),
3987(39, 1, '200', 1434986898),
3988(40, 1, '200', 1438267435),
3989(41, 1, '200', 1438268602);
3990
3991-- --------------------------------------------------------
3992
3993--
3994-- Table structure for table `service`
3995--
3996
3997CREATE TABLE IF NOT EXISTS `service` (
3998 `id` int(10) unsigned NOT NULL,
3999 `service_name` varchar(100) DEFAULT NULL,
4000 `service_description` varchar(255) DEFAULT NULL,
4001 `service_url` varchar(255) DEFAULT NULL,
4002 `service_api` varchar(255) DEFAULT NULL
4003) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Info on input sources i.e SMS, Email, Twitter';
4004
4005--
4006-- Dumping data for table `service`
4007--
4008
4009INSERT INTO `service` (`id`, `service_name`, `service_description`, `service_url`, `service_api`) VALUES
4010(1, 'SMS', 'Text messages from phones', NULL, NULL),
4011(2, 'Email', 'Email messages sent to your deployment', NULL, NULL),
4012(3, 'Twitter', 'Tweets tweets tweets', 'http://twitter.com', NULL);
4013
4014-- --------------------------------------------------------
4015
4016--
4017-- Table structure for table `sessions`
4018--
4019
4020CREATE TABLE IF NOT EXISTS `sessions` (
4021 `session_id` varchar(127) NOT NULL,
4022 `last_activity` int(10) unsigned NOT NULL,
4023 `data` text NOT NULL
4024) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores session information';
4025
4026--
4027-- Dumping data for table `sessions`
4028--
4029
4030INSERT INTO `sessions` (`session_id`, `last_activity`, `data`) VALUES
4031('7n5bg6f0vf10cvlc6qph5k9bo7', 1438268923, '8TiwKI2XJ8U++c8Jsb61E0hZZumDxohweso9qwbYcj58iF83EXeuVMW5jfEcspT7wNVjAgrKvHwM0QkyBGOEHaE85YkbE/NH88yUwqKIYVSnXZtnFVoX/EFtlYZlkI0eyR2IXzcHgScw7MJi6PLKny0IK9lzsrEURDvvuWGNY2yboNxsnI3GrT3nH9toUuoFNIEivKdjL9PLuYDMRDArXDdMUBQ4vr99y9y0o2Qq+8XDtyUsFcsTTw/KdFltKhEAd/0NJvCgfgk3iXrd65JmL4nYFj3EUoXj85xmYM9i1LF8GnuVFh34HLxwTFEF0XMMyvkN9T346P8r2mJ24XxaFqS5AtdJdvA2TiQMHcUTOCetKk+SIOCsrzcrsXEunmr0OGqrqSIiLN4bZ1M9nB7vMJ+JPpAjyjrmKeya7EgKwCjIhzV/00peGh6aQ+EN6gzwr9Wv1MVPKb+V9eECQMssI30ZeiASTrszL6+u4XletU3MFYN1/eHOImR6deV7TSYBK0Jzoj1DUhbI+msRvzhtUWBopLlDT8FaYzUBMA/3lXnblznhj9IeDuHjEnSAF/ffUZptlMmjyH4V/yiKWeDFz3w9uTYkK19hh2Wq7SKL/q5mY3DxUcMIMPnpkZiOmUQh5WHKRkhm9LeYqHTfNHjGYQ94ODxOoLrWBJz+Z1lxZogeL1u3p+Es5du+C4/K40DIUhgcs0WU621nvlwn97Uswo3PPt/iWQ7zRFr/9/NsffN2nRuLg4iAmeiTsxe87h+2FG4z6zed8Res8VSnmzt7DbTjUDno9y3Jx0vABSnn6ISZ2JY+oLVEq/Y2aW4RYvSqTKxuMAJ8hlnk/FKgcUBpyo9F+EyURmrw22zaI3MBt9CXOyWNb7QOiX4GAednZjzl8wcrwemAUsFcxzR6fgQSD4as4Ty9CC2818a7s7oPyWuDPqW4HDO691Jt2QEMlNig1DTFsDJZzN9DvabFT2Od0BdR1n/p+kW0qyiYbHA4TR/bb/2b+zqWyuDOxZybezBe4SgbMreqGhlsbs74ZBKcUqp4X87w/kfhOt7x9wRQeZKTUWywYi10R4Vqb2L326UMYQe3BNq5JwZxh3D9CUAvtoenBpVdMnu4Ir9zs2fPxEzKVLkAiTJJP2P8xuTgrRIFYL1JiHX2ws5PzT+rBt59LVFQB4ZjmcF95q/btGfQxadbvkVIshlC8vtzyNs6sCN2fsD+7GWEZeNe9mKAb69+QDc3lo+22XgtuugHLlul0zvkznqQ/xE+hMmRgrc5Efj6YCaSJEn00mQPyBQO0K/c6sSkjyxOK72aeT+cc3R4xuLzeujcZeP5ctvOXS04mgvua6ohHhpEq4y5MnJZKB7+uNlYDPZI6NDlrBAFZRlqLlAE8/uB5pa/pn20cSoUDarI4CGQwombkNEOz3G4QpcBGjmOW9v204ddczSyB60='),
4032('dk616ohap8o1cfrc2lbkalaa53', 1438270876, 'AqZHcRJbkH5K0puPQRqxeelO2P7Qcm0Tzf8Vg4MI+WMV59nv6ZtwkvINhc/fulCvBBMThJ7ciVtTUg/UnJM0QoDvi6Q77aXe0RBz1G0m1xHypW4LMeXUADbHKoURo/R/gRzGNBVLDP4FDT84WJTcIeax6qKUqyZkx6U6hxBnRcxwY077xN0g/Hly74k5H6Se2sEVFGrmLAUyGz5OC/Mg4PUCl6irYN9cdlmuIXFYWzrkwCPFF/A8VehjoryHFMuc38XauCBsQcuKoe4vMPtROzB1/O1XU5V3opKmGnoVuAQ8xkuwtm7cOGT+50gpWtKOKcM0832DgZ7h8ZQ1bH/IcXKGuRH+xmKvm0qxZIuhvwHUaKi9kMEO5fCFCppyYOu1vXWUAtdHIj09QvOkk0Ij/U6QAXz/pxo200MufURmP57QLwGIIdlXp5hOjrH2IILYA/Jx1PSzyO2pF2MiOQ2/ru2LYcBsQyaer91YNaU0s10BHlIwY5y3tF+5kU/y44dTObb1GQr+0nCnbfx98d0j1uJeVVK08U4jFtOua2yMYG/4g/rCLxUjtCAaU4pOXQinxe4XwLYu09gNqfaDnmQK0jsiQI828CDmwqYjNIe0rqXZ+HbOxKZlePgcKhGZXo9hAoa1UEreFPdLvEEXL27Tfxbp/oC4PNo8HNytIVu/dqP7fG4Q0uIKFgm2hsBgiD4lh9ezfQFZv2PfvB2zYsVxV6zR49NRkRo/I7zPPANgPCKB+n32/o7zx/vZJVKjiBTk8jCpW925sX1RuG2Kbq/7EusWsab1i1hiv9JNk5qDigmDMoeiceDvOotn4JmHYzXpcCubYpkv4/BULfNaqYLiK4DGpQziwdn8BCet+DXgFprp/g+pVYDIIZZTGPdMLnqCP9qQnKc7gOMp6pPd2FyyQp42C2KEheUs9KWERyVYpUNHxj+W+JHgKqCYrK0zgbRVXUzBqo5xcjWPAn8Ff+8VsG5CgzOegAAvgjcOxFOzLHMXn1KS9HHhpEAkrUn+vAdim3oMDKPV/aKZf9QjYQyEIT1nDQmiF49hYK0UJg8MKR67Eym5HnpShnb3EgYZEN6H9oi8m3xTuICmseAcevcCEM2nOB5o20H0QaFX8Egs3Kh3iYC9Q3yxxcFHocP6m/PEpYD1ZETkz8VWhis37dcFvIqOrNp9Q0xtWybFJ2A+03vF8wlY4kcc8uBCYB20v9kiiMDGBtcUxICfTOfpPRXMQmWHpHECJc2VsnZ/gKRuHQHXLQFv42ZhANBf4fuB8NmEHmjLn136vQK2G4Xva2F3nMqm+q81PAAIE4TAH967yPxqyvd4/Sb/PmDgZyGrsu3SyHVED1GHTNjRDHBkXlGnSB92UyLtWLoYdpQhep81Vq5N1Zhi67HIxl3FByCw8afobi8Rv97tFYxr1HhNCHgZIaZcQZ7S+53wisiFvU6rxgFP+50BiNVJgc4Oxs6NSKF9bsRYn8Ae1vML9hIHb1Kx55r458fCy0ejVm2ASpwf68OT9JucvoLnaO/vXuOu/7BcsFd3hdiD7IjEMKqfPzRvbHLAfnhT+wz5RkfivQ==');
4033
4034-- --------------------------------------------------------
4035
4036--
4037-- Table structure for table `settings`
4038--
4039
4040CREATE TABLE IF NOT EXISTS `settings` (
4041 `id` int(11) unsigned NOT NULL,
4042 `key` varchar(100) NOT NULL DEFAULT '' COMMENT 'Unique identifier for the configuration parameter',
4043 `value` text COMMENT 'Value for the settings parameter'
4044) ENGINE=MyISAM AUTO_INCREMENT=81 DEFAULT CHARSET=utf8;
4045
4046--
4047-- Dumping data for table `settings`
4048--
4049
4050INSERT INTO `settings` (`id`, `key`, `value`) VALUES
4051(1, 'site_name', 'Guyana Deaf Community'),
4052(2, 'site_tagline', 'Education for all.'),
4053(3, 'site_banner_id', NULL),
4054(4, 'site_email', 'divyaupadhyay42@gmail.com'),
4055(5, 'site_key', NULL),
4056(6, 'site_language', 'en_US'),
4057(7, 'site_style', 'default'),
4058(8, 'site_timezone', NULL),
4059(9, 'site_contact_page', '1'),
4060(10, 'site_help_page', '1'),
4061(11, 'site_message', NULL),
4062(12, 'site_copyright_statement', NULL),
4063(13, 'site_submit_report_message', NULL),
4064(14, 'allow_reports', '1'),
4065(15, 'allow_comments', '1'),
4066(16, 'allow_feed', '1'),
4067(17, 'allow_stat_sharing', '1'),
4068(18, 'allow_clustering', '1'),
4069(19, 'cache_pages', '0'),
4070(20, 'cache_pages_lifetime', '1800'),
4071(21, 'private_deployment', '0'),
4072(22, 'default_map', 'google_physical'),
4073(23, 'default_map_all', 'CC0000'),
4074(24, 'default_map_all_icon_id', NULL),
4075(25, 'api_google', ''),
4076(26, 'api_live', 'Apumcka0uPOF2lKLorq8aeo4nuqfVVeNRqJjqOcLMJ9iMCTsnMsNd9_OvpA8gR0i'),
4077(27, 'api_akismet', ''),
4078(28, 'default_country', '94'),
4079(29, 'multi_country', '0'),
4080(30, 'default_city', 'nairobi'),
4081(31, 'default_lat', '4.860416'),
4082(32, 'default_lon', '-58.93018000000001'),
4083(33, 'default_zoom', '6'),
4084(34, 'items_per_page', '5'),
4085(35, 'items_per_page_admin', '20'),
4086(36, 'sms_provider', ''),
4087(37, 'sms_no1', NULL),
4088(38, 'sms_no2', NULL),
4089(39, 'sms_no3', NULL),
4090(40, 'google_analytics', NULL),
4091(41, 'twitter_hashtags', NULL),
4092(42, 'blocks', 'news_block|reports_block'),
4093(43, 'blocks_per_row', '2'),
4094(44, 'date_modify', '2015-06-05 23:32:05'),
4095(45, 'stat_id', '69484'),
4096(46, 'stat_key', '22b32dea8655b194d681297267a72f'),
4097(47, 'email_username', NULL),
4098(48, 'email_password', NULL),
4099(49, 'email_port', NULL),
4100(50, 'email_host', NULL),
4101(51, 'email_servertype', NULL),
4102(52, 'email_ssl', NULL),
4103(53, 'ftp_server', NULL),
4104(54, 'ftp_user_name', NULL),
4105(55, 'alerts_email', NULL),
4106(57, 'facebook_appid', NULL),
4107(58, 'facebook_appsecret', NULL),
4108(59, 'db_version', '117'),
4109(60, 'ushahidi_version', '2.7.3'),
4110(61, 'allow_alerts', '1'),
4111(62, 'require_email_confirmation', '0'),
4112(63, 'manually_approve_users', '0'),
4113(64, 'enable_timeline', '1'),
4114(65, 'feed_geolocation_user', ''),
4115(66, 'allow_feed_category', '0'),
4116(67, 'dashboard_redirect', '1'),
4117(68, 'enable_report_notifications', '0'),
4118(69, 'enable_media_filters', '1'),
4119(70, 'enable_chronological_filter', '1'),
4120(71, 'enable_category_filters', '1'),
4121(72, 'enable_category_filters_showhide', '1'),
4122(73, 'show_reporting_options', '1'),
4123(74, 'show_submit_report_tab', '1'),
4124(75, 'enable_filter_search', '0'),
4125(76, 'allow_opportunities', '1'),
4126(77, 'forgot_password_secret', 'hRDzLYhX]u)rnh!`tU%T~j?$*vG;%WhR,nG$9#t95#NuJ%Qeox(Rn62I.&;QwPe&'),
4127(78, 'scheduler_lock', '1438270919'),
4128(79, 'timeline_graph', 'line'),
4129(80, 'timeline_point_label', '0');
4130
4131-- --------------------------------------------------------
4132
4133--
4134-- Table structure for table `user_tokens`
4135--
4136
4137CREATE TABLE IF NOT EXISTS `user_tokens` (
4138 `id` int(11) unsigned NOT NULL,
4139 `user_id` int(11) unsigned NOT NULL,
4140 `user_agent` varchar(40) NOT NULL,
4141 `token` varchar(64) NOT NULL,
4142 `created` int(10) unsigned NOT NULL,
4143 `expires` int(10) unsigned NOT NULL
4144) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Stores browser tokens assigned to users';
4145
4146--
4147-- Dumping data for table `user_tokens`
4148--
4149
4150INSERT INTO `user_tokens` (`id`, `user_id`, `user_agent`, `token`, `created`, `expires`) VALUES
4151(1, 1, '90e74ce59bd661ca2bfb91e9e2ef879f523db886', 'KbgHGfgUENazVs1DfZogGAHT2wS9Gd50', 1433494886, 1434704486),
4152(2, 1, '28d93540dd1ea8860dca7b4b45eafeaa32478e02', 'l1HqJRU7hMU0eb1mzN6A6b16Ngjd4Zcn', 1433534373, 1434743973);
4153
4154-- --------------------------------------------------------
4155
4156--
4157-- Table structure for table `users`
4158--
4159
4160CREATE TABLE IF NOT EXISTS `users` (
4161 `id` int(11) unsigned NOT NULL,
4162 `riverid` varchar(128) NOT NULL,
4163 `name` varchar(200) DEFAULT NULL,
4164 `email` varchar(127) NOT NULL,
4165 `username` varchar(100) NOT NULL DEFAULT '',
4166 `password` char(50) NOT NULL,
4167 `logins` int(10) unsigned NOT NULL DEFAULT '0',
4168 `last_login` int(10) unsigned DEFAULT NULL,
4169 `notify` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Flag incase admin opts in for email notifications',
4170 `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
4171 `color` varchar(6) NOT NULL DEFAULT 'FF0000',
4172 `code` varchar(30) DEFAULT NULL,
4173 `confirmed` tinyint(1) NOT NULL DEFAULT '0',
4174 `public_profile` tinyint(1) NOT NULL DEFAULT '1',
4175 `approved` tinyint(1) NOT NULL DEFAULT '1',
4176 `needinfo` tinyint(1) NOT NULL DEFAULT '0',
4177 `report_notifications` tinyint(4) DEFAULT '0',
4178 `last_reports_view` datetime DEFAULT NULL
4179) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Stores registered users’ information';
4180
4181--
4182-- Dumping data for table `users`
4183--
4184
4185INSERT INTO `users` (`id`, `riverid`, `name`, `email`, `username`, `password`, `logins`, `last_login`, `notify`, `updated`, `color`, `code`, `confirmed`, `public_profile`, `approved`, `needinfo`, `report_notifications`, `last_reports_view`) VALUES
4186(1, '', 'Administrator', 'divyaupadhyay42@gmail.com', 'admin', '7f1ef9c4347d08e5b78e0e13374713d7d482cce3f74927531d', 11, 1438268612, 0, '2015-07-30 15:39:01', 'FF0000', NULL, 1, 0, 1, 0, 0, '2015-07-30 15:39:01');
4187
4188-- --------------------------------------------------------
4189
4190--
4191-- Table structure for table `verified`
4192--
4193
4194CREATE TABLE IF NOT EXISTS `verified` (
4195 `id` bigint(20) unsigned NOT NULL,
4196 `incident_id` bigint(20) unsigned DEFAULT NULL,
4197 `user_id` int(11) DEFAULT NULL,
4198 `verified_date` datetime DEFAULT NULL,
4199 `verified_status` tinyint(4) NOT NULL DEFAULT '0'
4200) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='Stores all verified reports';
4201
4202--
4203-- Dumping data for table `verified`
4204--
4205
4206INSERT INTO `verified` (`id`, `incident_id`, `user_id`, `verified_date`, `verified_status`) VALUES
4207(1, 2, 1, '2015-06-05 17:19:29', 3),
4208(2, 29, 1, '2015-06-05 23:27:03', 3),
4209(3, 4, 1, '2015-06-05 23:28:43', 2),
4210(4, 3, 1, '2015-06-05 23:29:44', 3),
4211(5, 1, 1, '2015-06-05 23:30:19', 3),
4212(6, 2, 1, '2015-06-05 23:31:08', 3),
4213(7, 1, 1, '2015-06-05 23:32:50', 3),
4214(8, 4, 1, '2015-06-06 10:00:51', 3),
4215(9, 46, 1, '2015-06-06 10:00:51', 3);
4216
4217--
4218-- Indexes for dumped tables
4219--
4220
4221--
4222-- Indexes for table `actions`
4223--
4224ALTER TABLE `actions`
4225 ADD PRIMARY KEY (`action_id`);
4226
4227--
4228-- Indexes for table `actions_log`
4229--
4230ALTER TABLE `actions_log`
4231 ADD PRIMARY KEY (`id`),
4232 ADD KEY `action_id` (`action_id`);
4233
4234--
4235-- Indexes for table `alert`
4236--
4237ALTER TABLE `alert`
4238 ADD PRIMARY KEY (`id`),
4239 ADD UNIQUE KEY `uniq_alert_code` (`alert_code`),
4240 ADD KEY `user_id` (`user_id`);
4241
4242--
4243-- Indexes for table `alert_category`
4244--
4245ALTER TABLE `alert_category`
4246 ADD PRIMARY KEY (`id`),
4247 ADD KEY `alert_id` (`alert_id`),
4248 ADD KEY `category_id` (`category_id`);
4249
4250--
4251-- Indexes for table `alert_sent`
4252--
4253ALTER TABLE `alert_sent`
4254 ADD PRIMARY KEY (`id`),
4255 ADD KEY `incident_id` (`incident_id`),
4256 ADD KEY `alert_id` (`alert_id`);
4257
4258--
4259-- Indexes for table `api_banned`
4260--
4261ALTER TABLE `api_banned`
4262 ADD PRIMARY KEY (`id`);
4263
4264--
4265-- Indexes for table `api_log`
4266--
4267ALTER TABLE `api_log`
4268 ADD PRIMARY KEY (`id`);
4269
4270--
4271-- Indexes for table `api_settings`
4272--
4273ALTER TABLE `api_settings`
4274 ADD PRIMARY KEY (`id`);
4275
4276--
4277-- Indexes for table `badge`
4278--
4279ALTER TABLE `badge`
4280 ADD PRIMARY KEY (`id`);
4281
4282--
4283-- Indexes for table `badge_users`
4284--
4285ALTER TABLE `badge_users`
4286 ADD PRIMARY KEY (`user_id`,`badge_id`);
4287
4288--
4289-- Indexes for table `category`
4290--
4291ALTER TABLE `category`
4292 ADD PRIMARY KEY (`id`),
4293 ADD KEY `category_visible` (`category_visible`),
4294 ADD KEY `parent_id` (`parent_id`);
4295
4296--
4297-- Indexes for table `category_lang`
4298--
4299ALTER TABLE `category_lang`
4300 ADD PRIMARY KEY (`id`),
4301 ADD KEY `category_id` (`category_id`);
4302
4303--
4304-- Indexes for table `city`
4305--
4306ALTER TABLE `city`
4307 ADD PRIMARY KEY (`id`),
4308 ADD KEY `country_id` (`country_id`);
4309
4310--
4311-- Indexes for table `cluster`
4312--
4313ALTER TABLE `cluster`
4314 ADD PRIMARY KEY (`id`),
4315 ADD KEY `location_id` (`location_id`),
4316 ADD KEY `incident_id` (`incident_id`),
4317 ADD KEY `category_id` (`category_id`);
4318
4319--
4320-- Indexes for table `comment`
4321--
4322ALTER TABLE `comment`
4323 ADD PRIMARY KEY (`id`),
4324 ADD KEY `incident_id` (`incident_id`),
4325 ADD KEY `user_id` (`user_id`);
4326
4327--
4328-- Indexes for table `country`
4329--
4330ALTER TABLE `country`
4331 ADD PRIMARY KEY (`id`);
4332
4333--
4334-- Indexes for table `externalapp`
4335--
4336ALTER TABLE `externalapp`
4337 ADD PRIMARY KEY (`id`);
4338
4339--
4340-- Indexes for table `feed`
4341--
4342ALTER TABLE `feed`
4343 ADD PRIMARY KEY (`id`);
4344
4345--
4346-- Indexes for table `feed_item`
4347--
4348ALTER TABLE `feed_item`
4349 ADD PRIMARY KEY (`id`),
4350 ADD KEY `feed_id` (`feed_id`),
4351 ADD KEY `incident_id` (`incident_id`),
4352 ADD KEY `location_id` (`location_id`);
4353
4354--
4355-- Indexes for table `feed_item_category`
4356--
4357ALTER TABLE `feed_item_category`
4358 ADD PRIMARY KEY (`id`),
4359 ADD UNIQUE KEY `feed_item_category_ids` (`feed_item_id`,`category_id`),
4360 ADD KEY `feed_item_id` (`feed_item_id`),
4361 ADD KEY `category_id` (`category_id`);
4362
4363--
4364-- Indexes for table `form`
4365--
4366ALTER TABLE `form`
4367 ADD PRIMARY KEY (`id`),
4368 ADD UNIQUE KEY `form_title` (`form_title`);
4369
4370--
4371-- Indexes for table `form_field`
4372--
4373ALTER TABLE `form_field`
4374 ADD PRIMARY KEY (`id`),
4375 ADD UNIQUE KEY `field_name` (`field_name`,`form_id`),
4376 ADD KEY `fk_form_id` (`form_id`);
4377
4378--
4379-- Indexes for table `form_field_option`
4380--
4381ALTER TABLE `form_field_option`
4382 ADD PRIMARY KEY (`id`),
4383 ADD KEY `form_field_id` (`form_field_id`);
4384
4385--
4386-- Indexes for table `form_response`
4387--
4388ALTER TABLE `form_response`
4389 ADD PRIMARY KEY (`id`),
4390 ADD KEY `fk_form_field_id` (`form_field_id`),
4391 ADD KEY `incident_id` (`incident_id`);
4392
4393--
4394-- Indexes for table `geometry`
4395--
4396ALTER TABLE `geometry`
4397 ADD PRIMARY KEY (`id`),
4398 ADD SPATIAL KEY `geometry` (`geometry`),
4399 ADD KEY `incident_id` (`incident_id`);
4400
4401--
4402-- Indexes for table `incident`
4403--
4404ALTER TABLE `incident`
4405 ADD PRIMARY KEY (`id`),
4406 ADD KEY `location_id` (`location_id`),
4407 ADD KEY `incident_active` (`incident_active`),
4408 ADD KEY `incident_date` (`incident_date`),
4409 ADD KEY `form_id` (`form_id`),
4410 ADD KEY `user_id` (`user_id`),
4411 ADD KEY `incident_mode` (`incident_mode`),
4412 ADD KEY `incident_verified` (`incident_verified`);
4413
4414--
4415-- Indexes for table `incident_category`
4416--
4417ALTER TABLE `incident_category`
4418 ADD PRIMARY KEY (`id`),
4419 ADD UNIQUE KEY `incident_category_ids` (`incident_id`,`category_id`),
4420 ADD KEY `incident_id` (`incident_id`),
4421 ADD KEY `category_id` (`category_id`);
4422
4423--
4424-- Indexes for table `incident_lang`
4425--
4426ALTER TABLE `incident_lang`
4427 ADD PRIMARY KEY (`id`),
4428 ADD KEY `incident_id` (`incident_id`);
4429
4430--
4431-- Indexes for table `incident_person`
4432--
4433ALTER TABLE `incident_person`
4434 ADD PRIMARY KEY (`id`),
4435 ADD KEY `incident_id` (`incident_id`);
4436
4437--
4438-- Indexes for table `layer`
4439--
4440ALTER TABLE `layer`
4441 ADD PRIMARY KEY (`id`);
4442
4443--
4444-- Indexes for table `level`
4445--
4446ALTER TABLE `level`
4447 ADD PRIMARY KEY (`id`);
4448
4449--
4450-- Indexes for table `location`
4451--
4452ALTER TABLE `location`
4453 ADD PRIMARY KEY (`id`),
4454 ADD KEY `country_id` (`country_id`),
4455 ADD KEY `latitude` (`latitude`),
4456 ADD KEY `longitude` (`longitude`);
4457
4458--
4459-- Indexes for table `maintenance`
4460--
4461ALTER TABLE `maintenance`
4462 ADD PRIMARY KEY (`allowed_ip`);
4463
4464--
4465-- Indexes for table `media`
4466--
4467ALTER TABLE `media`
4468 ADD PRIMARY KEY (`id`),
4469 ADD KEY `incident_id` (`incident_id`),
4470 ADD KEY `location_id` (`location_id`),
4471 ADD KEY `badge_id` (`badge_id`),
4472 ADD KEY `message_id` (`message_id`);
4473
4474--
4475-- Indexes for table `message`
4476--
4477ALTER TABLE `message`
4478 ADD PRIMARY KEY (`id`),
4479 ADD KEY `user_id` (`user_id`),
4480 ADD KEY `incident_id` (`incident_id`),
4481 ADD KEY `reporter_id` (`reporter_id`);
4482
4483--
4484-- Indexes for table `openid`
4485--
4486ALTER TABLE `openid`
4487 ADD PRIMARY KEY (`id`),
4488 ADD KEY `openid` (`openid`),
4489 ADD KEY `user_id` (`user_id`);
4490
4491--
4492-- Indexes for table `opportunities`
4493--
4494ALTER TABLE `opportunities`
4495 ADD PRIMARY KEY (`id`);
4496
4497--
4498-- Indexes for table `page`
4499--
4500ALTER TABLE `page`
4501 ADD PRIMARY KEY (`id`);
4502
4503--
4504-- Indexes for table `permissions`
4505--
4506ALTER TABLE `permissions`
4507 ADD PRIMARY KEY (`id`),
4508 ADD UNIQUE KEY `name_UNIQUE` (`name`);
4509
4510--
4511-- Indexes for table `permissions_roles`
4512--
4513ALTER TABLE `permissions_roles`
4514 ADD PRIMARY KEY (`role_id`,`permission_id`);
4515
4516--
4517-- Indexes for table `plugin`
4518--
4519ALTER TABLE `plugin`
4520 ADD PRIMARY KEY (`id`),
4521 ADD UNIQUE KEY `plugin_name` (`plugin_name`);
4522
4523--
4524-- Indexes for table `private_message`
4525--
4526ALTER TABLE `private_message`
4527 ADD PRIMARY KEY (`id`),
4528 ADD KEY `user_id` (`user_id`);
4529
4530--
4531-- Indexes for table `rating`
4532--
4533ALTER TABLE `rating`
4534 ADD PRIMARY KEY (`id`),
4535 ADD KEY `user_id` (`user_id`),
4536 ADD KEY `incident_id` (`incident_id`),
4537 ADD KEY `comment_id` (`comment_id`);
4538
4539--
4540-- Indexes for table `reporter`
4541--
4542ALTER TABLE `reporter`
4543 ADD PRIMARY KEY (`id`),
4544 ADD KEY `user_id` (`user_id`),
4545 ADD KEY `location_id` (`location_id`),
4546 ADD KEY `service_id` (`service_id`),
4547 ADD KEY `level_id` (`level_id`);
4548
4549--
4550-- Indexes for table `roles`
4551--
4552ALTER TABLE `roles`
4553 ADD PRIMARY KEY (`id`),
4554 ADD UNIQUE KEY `uniq_name` (`name`);
4555
4556--
4557-- Indexes for table `roles_users`
4558--
4559ALTER TABLE `roles_users`
4560 ADD PRIMARY KEY (`user_id`,`role_id`),
4561 ADD KEY `fk_role_id` (`role_id`);
4562
4563--
4564-- Indexes for table `scheduler`
4565--
4566ALTER TABLE `scheduler`
4567 ADD PRIMARY KEY (`id`);
4568
4569--
4570-- Indexes for table `scheduler_log`
4571--
4572ALTER TABLE `scheduler_log`
4573 ADD PRIMARY KEY (`id`),
4574 ADD KEY `scheduler_id` (`scheduler_id`);
4575
4576--
4577-- Indexes for table `service`
4578--
4579ALTER TABLE `service`
4580 ADD PRIMARY KEY (`id`);
4581
4582--
4583-- Indexes for table `sessions`
4584--
4585ALTER TABLE `sessions`
4586 ADD PRIMARY KEY (`session_id`);
4587
4588--
4589-- Indexes for table `settings`
4590--
4591ALTER TABLE `settings`
4592 ADD PRIMARY KEY (`id`),
4593 ADD UNIQUE KEY `uq_settings_key` (`key`);
4594
4595--
4596-- Indexes for table `user_tokens`
4597--
4598ALTER TABLE `user_tokens`
4599 ADD PRIMARY KEY (`id`),
4600 ADD UNIQUE KEY `uniq_token` (`token`),
4601 ADD KEY `fk_user_id` (`user_id`);
4602
4603--
4604-- Indexes for table `users`
4605--
4606ALTER TABLE `users`
4607 ADD PRIMARY KEY (`id`),
4608 ADD UNIQUE KEY `uniq_username` (`username`),
4609 ADD UNIQUE KEY `uniq_email` (`email`);
4610
4611--
4612-- Indexes for table `verified`
4613--
4614ALTER TABLE `verified`
4615 ADD PRIMARY KEY (`id`),
4616 ADD KEY `incident_id` (`incident_id`);
4617
4618--
4619-- AUTO_INCREMENT for dumped tables
4620--
4621
4622--
4623-- AUTO_INCREMENT for table `actions`
4624--
4625ALTER TABLE `actions`
4626 MODIFY `action_id` int(11) NOT NULL AUTO_INCREMENT;
4627--
4628-- AUTO_INCREMENT for table `actions_log`
4629--
4630ALTER TABLE `actions_log`
4631 MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
4632--
4633-- AUTO_INCREMENT for table `alert`
4634--
4635ALTER TABLE `alert`
4636 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
4637--
4638-- AUTO_INCREMENT for table `alert_category`
4639--
4640ALTER TABLE `alert_category`
4641 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
4642--
4643-- AUTO_INCREMENT for table `alert_sent`
4644--
4645ALTER TABLE `alert_sent`
4646 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
4647--
4648-- AUTO_INCREMENT for table `api_banned`
4649--
4650ALTER TABLE `api_banned`
4651 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
4652--
4653-- AUTO_INCREMENT for table `api_log`
4654--
4655ALTER TABLE `api_log`
4656 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19;
4657--
4658-- AUTO_INCREMENT for table `api_settings`
4659--
4660ALTER TABLE `api_settings`
4661 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
4662--
4663-- AUTO_INCREMENT for table `badge`
4664--
4665ALTER TABLE `badge`
4666 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
4667--
4668-- AUTO_INCREMENT for table `category`
4669--
4670ALTER TABLE `category`
4671 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
4672--
4673-- AUTO_INCREMENT for table `category_lang`
4674--
4675ALTER TABLE `category_lang`
4676 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
4677--
4678-- AUTO_INCREMENT for table `city`
4679--
4680ALTER TABLE `city`
4681 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
4682--
4683-- AUTO_INCREMENT for table `comment`
4684--
4685ALTER TABLE `comment`
4686 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
4687--
4688-- AUTO_INCREMENT for table `country`
4689--
4690ALTER TABLE `country`
4691 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=250;
4692--
4693-- AUTO_INCREMENT for table `externalapp`
4694--
4695ALTER TABLE `externalapp`
4696 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
4697--
4698-- AUTO_INCREMENT for table `feed`
4699--
4700ALTER TABLE `feed`
4701 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
4702--
4703-- AUTO_INCREMENT for table `feed_item`
4704--
4705ALTER TABLE `feed_item`
4706 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
4707--
4708-- AUTO_INCREMENT for table `feed_item_category`
4709--
4710ALTER TABLE `feed_item_category`
4711 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
4712--
4713-- AUTO_INCREMENT for table `form`
4714--
4715ALTER TABLE `form`
4716 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
4717--
4718-- AUTO_INCREMENT for table `form_field`
4719--
4720ALTER TABLE `form_field`
4721 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=15;
4722--
4723-- AUTO_INCREMENT for table `form_field_option`
4724--
4725ALTER TABLE `form_field_option`
4726 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19;
4727--
4728-- AUTO_INCREMENT for table `form_response`
4729--
4730ALTER TABLE `form_response`
4731 MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=333;
4732--
4733-- AUTO_INCREMENT for table `geometry`
4734--
4735ALTER TABLE `geometry`
4736 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
4737--
4738-- AUTO_INCREMENT for table `incident`
4739--
4740ALTER TABLE `incident`
4741 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=49;
4742--
4743-- AUTO_INCREMENT for table `incident_category`
4744--
4745ALTER TABLE `incident_category`
4746 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=82;
4747--
4748-- AUTO_INCREMENT for table `incident_lang`
4749--
4750ALTER TABLE `incident_lang`
4751 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
4752--
4753-- AUTO_INCREMENT for table `incident_person`
4754--
4755ALTER TABLE `incident_person`
4756 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=28;
4757--
4758-- AUTO_INCREMENT for table `layer`
4759--
4760ALTER TABLE `layer`
4761 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
4762--
4763-- AUTO_INCREMENT for table `level`
4764--
4765ALTER TABLE `level`
4766 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
4767--
4768-- AUTO_INCREMENT for table `location`
4769--
4770ALTER TABLE `location`
4771 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=49;
4772--
4773-- AUTO_INCREMENT for table `media`
4774--
4775ALTER TABLE `media`
4776 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
4777--
4778-- AUTO_INCREMENT for table `message`
4779--
4780ALTER TABLE `message`
4781 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
4782--
4783-- AUTO_INCREMENT for table `openid`
4784--
4785ALTER TABLE `openid`
4786 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
4787--
4788-- AUTO_INCREMENT for table `opportunities`
4789--
4790ALTER TABLE `opportunities`
4791 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
4792--
4793-- AUTO_INCREMENT for table `page`
4794--
4795ALTER TABLE `page`
4796 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
4797--
4798-- AUTO_INCREMENT for table `permissions`
4799--
4800ALTER TABLE `permissions`
4801 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=21;
4802--
4803-- AUTO_INCREMENT for table `plugin`
4804--
4805ALTER TABLE `plugin`
4806 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
4807--
4808-- AUTO_INCREMENT for table `private_message`
4809--
4810ALTER TABLE `private_message`
4811 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
4812--
4813-- AUTO_INCREMENT for table `rating`
4814--
4815ALTER TABLE `rating`
4816 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
4817--
4818-- AUTO_INCREMENT for table `reporter`
4819--
4820ALTER TABLE `reporter`
4821 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
4822--
4823-- AUTO_INCREMENT for table `roles`
4824--
4825ALTER TABLE `roles`
4826 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
4827--
4828-- AUTO_INCREMENT for table `scheduler`
4829--
4830ALTER TABLE `scheduler`
4831 MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
4832--
4833-- AUTO_INCREMENT for table `scheduler_log`
4834--
4835ALTER TABLE `scheduler_log`
4836 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=42;
4837--
4838-- AUTO_INCREMENT for table `service`
4839--
4840ALTER TABLE `service`
4841 MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
4842--
4843-- AUTO_INCREMENT for table `settings`
4844--
4845ALTER TABLE `settings`
4846 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=81;
4847--
4848-- AUTO_INCREMENT for table `user_tokens`
4849--
4850ALTER TABLE `user_tokens`
4851 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
4852--
4853-- AUTO_INCREMENT for table `users`
4854--
4855ALTER TABLE `users`
4856 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
4857--
4858-- AUTO_INCREMENT for table `verified`
4859--
4860ALTER TABLE `verified`
4861 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10;--
4862-- Database: `divya_crowdmap`
4863--
4864
4865-- --------------------------------------------------------
4866
4867--
4868-- Table structure for table `divya_actions`
4869--
4870
4871CREATE TABLE IF NOT EXISTS `divya_actions` (
4872 `action_id` int(11) NOT NULL,
4873 `action` varchar(75) NOT NULL,
4874 `qualifiers` text NOT NULL,
4875 `response` varchar(75) NOT NULL,
4876 `response_vars` text NOT NULL,
4877 `active` tinyint(4) NOT NULL
4878) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores user defined actions triggered by certain events';
4879
4880-- --------------------------------------------------------
4881
4882--
4883-- Table structure for table `divya_actions_log`
4884--
4885
4886CREATE TABLE IF NOT EXISTS `divya_actions_log` (
4887 `id` bigint(20) NOT NULL,
4888 `action_id` int(11) NOT NULL,
4889 `user_id` int(11) NOT NULL,
4890 `time` int(10) NOT NULL
4891) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores a log of triggered actions';
4892
4893-- --------------------------------------------------------
4894
4895--
4896-- Table structure for table `divya_alert`
4897--
4898
4899CREATE TABLE IF NOT EXISTS `divya_alert` (
4900 `id` bigint(20) unsigned NOT NULL,
4901 `user_id` int(11) unsigned DEFAULT '0',
4902 `alert_type` tinyint(4) NOT NULL COMMENT '1 - MOBILE, 2 - EMAIL',
4903 `alert_recipient` varchar(200) DEFAULT NULL,
4904 `alert_code` varchar(30) DEFAULT NULL,
4905 `alert_confirmed` tinyint(4) NOT NULL DEFAULT '0',
4906 `alert_lat` varchar(150) DEFAULT NULL,
4907 `alert_lon` varchar(150) DEFAULT NULL,
4908 `alert_radius` tinyint(4) NOT NULL DEFAULT '20',
4909 `alert_ip` varchar(100) DEFAULT NULL
4910) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores alerts subscribers information';
4911
4912-- --------------------------------------------------------
4913
4914--
4915-- Table structure for table `divya_alert_category`
4916--
4917
4918CREATE TABLE IF NOT EXISTS `divya_alert_category` (
4919 `id` int(11) NOT NULL,
4920 `alert_id` bigint(20) unsigned DEFAULT NULL,
4921 `category_id` int(11) unsigned DEFAULT NULL
4922) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores subscriber alert categories';
4923
4924-- --------------------------------------------------------
4925
4926--
4927-- Table structure for table `divya_alert_sent`
4928--
4929
4930CREATE TABLE IF NOT EXISTS `divya_alert_sent` (
4931 `id` bigint(20) unsigned NOT NULL,
4932 `incident_id` bigint(20) unsigned NOT NULL,
4933 `alert_id` bigint(20) unsigned NOT NULL,
4934 `alert_date` datetime DEFAULT NULL
4935) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores a log of alerts sent out to subscribers';
4936
4937-- --------------------------------------------------------
4938
4939--
4940-- Table structure for table `divya_api_banned`
4941--
4942
4943CREATE TABLE IF NOT EXISTS `divya_api_banned` (
4944 `id` int(11) unsigned NOT NULL,
4945 `banned_ipaddress` varchar(50) NOT NULL,
4946 `banned_date` datetime NOT NULL
4947) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='For logging banned API IP addresses';
4948
4949-- --------------------------------------------------------
4950
4951--
4952-- Table structure for table `divya_api_log`
4953--
4954
4955CREATE TABLE IF NOT EXISTS `divya_api_log` (
4956 `id` int(11) unsigned NOT NULL,
4957 `api_task` varchar(10) NOT NULL,
4958 `api_parameters` varchar(100) NOT NULL,
4959 `api_records` tinyint(11) NOT NULL,
4960 `api_ipaddress` varchar(50) NOT NULL,
4961 `api_date` datetime NOT NULL
4962) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT='For logging API activities';
4963
4964-- --------------------------------------------------------
4965
4966--
4967-- Table structure for table `divya_api_settings`
4968--
4969
4970CREATE TABLE IF NOT EXISTS `divya_api_settings` (
4971 `id` int(11) NOT NULL,
4972 `default_record_limit` int(11) NOT NULL DEFAULT '20',
4973 `max_record_limit` int(11) DEFAULT NULL,
4974 `max_requests_per_ip_address` int(11) DEFAULT NULL,
4975 `max_requests_quota_basis` int(11) DEFAULT NULL,
4976 `modification_date` datetime NOT NULL
4977) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='For storing API logging settings';
4978
4979-- --------------------------------------------------------
4980
4981--
4982-- Table structure for table `divya_badge`
4983--
4984
4985CREATE TABLE IF NOT EXISTS `divya_badge` (
4986 `id` int(11) NOT NULL,
4987 `name` varchar(250) NOT NULL,
4988 `description` text NOT NULL
4989) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores description of badges to be assigned';
4990
4991-- --------------------------------------------------------
4992
4993--
4994-- Table structure for table `divya_badge_users`
4995--
4996
4997CREATE TABLE IF NOT EXISTS `divya_badge_users` (
4998 `user_id` int(11) unsigned NOT NULL,
4999 `badge_id` int(11) NOT NULL
5000) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores assigned badge information';
5001
5002-- --------------------------------------------------------
5003
5004--
5005-- Table structure for table `divya_category`
5006--
5007
5008CREATE TABLE IF NOT EXISTS `divya_category` (
5009 `id` int(11) unsigned NOT NULL,
5010 `parent_id` int(11) NOT NULL DEFAULT '0',
5011 `locale` varchar(10) NOT NULL DEFAULT 'en_US',
5012 `category_position` tinyint(4) NOT NULL DEFAULT '0',
5013 `category_title` varchar(255) DEFAULT NULL,
5014 `category_description` text,
5015 `category_color` varchar(20) DEFAULT NULL,
5016 `category_image` varchar(255) DEFAULT NULL,
5017 `category_image_thumb` varchar(255) DEFAULT NULL,
5018 `category_visible` tinyint(4) NOT NULL DEFAULT '1',
5019 `category_trusted` tinyint(4) NOT NULL DEFAULT '0'
5020) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Holds information about categories defined for a deployment';
5021
5022--
5023-- Dumping data for table `divya_category`
5024--
5025
5026INSERT INTO `divya_category` (`id`, `parent_id`, `locale`, `category_position`, `category_title`, `category_description`, `category_color`, `category_image`, `category_image_thumb`, `category_visible`, `category_trusted`) VALUES
5027(1, 0, 'en_US', 0, 'Category 1', 'Category 1', '9900CC', NULL, NULL, 1, 0),
5028(2, 0, 'en_US', 1, 'Category 2', 'Category 2', '3300FF', NULL, NULL, 1, 0),
5029(3, 0, 'en_US', 2, 'Category 3', 'Category 3', '663300', NULL, NULL, 1, 0),
5030(4, 0, 'en_US', 3, 'Trusted Reports', 'Reports from trusted reporters', '339900', NULL, NULL, 1, 1);
5031
5032-- --------------------------------------------------------
5033
5034--
5035-- Table structure for table `divya_category_lang`
5036--
5037
5038CREATE TABLE IF NOT EXISTS `divya_category_lang` (
5039 `id` int(11) unsigned NOT NULL,
5040 `category_id` int(11) unsigned NOT NULL,
5041 `locale` varchar(10) DEFAULT NULL,
5042 `category_title` varchar(255) DEFAULT NULL,
5043 `category_description` text
5044) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Holds translations for category titles and descriptions';
5045
5046-- --------------------------------------------------------
5047
5048--
5049-- Table structure for table `divya_city`
5050--
5051
5052CREATE TABLE IF NOT EXISTS `divya_city` (
5053 `id` bigint(20) unsigned NOT NULL,
5054 `country_id` int(11) DEFAULT NULL,
5055 `city` varchar(200) DEFAULT NULL,
5056 `city_lat` varchar(150) DEFAULT NULL,
5057 `city_lon` varchar(200) DEFAULT NULL
5058) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores cities of countries retrieved by user.';
5059
5060-- --------------------------------------------------------
5061
5062--
5063-- Table structure for table `divya_cluster`
5064--
5065
5066CREATE TABLE IF NOT EXISTS `divya_cluster` (
5067 `id` int(11) NOT NULL,
5068 `location_id` bigint(20) unsigned NOT NULL DEFAULT '0',
5069 `latitude` double NOT NULL,
5070 `longitude` double NOT NULL,
5071 `latitude_min` double NOT NULL,
5072 `longitude_min` double NOT NULL,
5073 `latitude_max` double NOT NULL,
5074 `longitude_max` double NOT NULL,
5075 `child_count` int(11) NOT NULL,
5076 `parent_id` int(11) NOT NULL,
5077 `left_side` int(11) NOT NULL,
5078 `right_side` int(11) NOT NULL,
5079 `level` int(11) NOT NULL,
5080 `incident_id` bigint(20) unsigned NOT NULL DEFAULT '0',
5081 `category_id` int(11) unsigned NOT NULL DEFAULT '0'
5082) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores information used for clustering of reports on the map.';
5083
5084-- --------------------------------------------------------
5085
5086--
5087-- Table structure for table `divya_comment`
5088--
5089
5090CREATE TABLE IF NOT EXISTS `divya_comment` (
5091 `id` bigint(20) unsigned NOT NULL,
5092 `incident_id` bigint(20) unsigned DEFAULT NULL,
5093 `user_id` int(11) unsigned DEFAULT '0',
5094 `comment_author` varchar(100) DEFAULT NULL,
5095 `comment_email` varchar(120) DEFAULT NULL,
5096 `comment_description` text,
5097 `comment_ip` varchar(100) DEFAULT NULL,
5098 `comment_spam` tinyint(4) NOT NULL DEFAULT '0',
5099 `comment_active` tinyint(4) NOT NULL DEFAULT '0',
5100 `comment_date` datetime DEFAULT NULL,
5101 `comment_date_gmt` datetime DEFAULT NULL
5102) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores comments made on reports';
5103
5104-- --------------------------------------------------------
5105
5106--
5107-- Table structure for table `divya_country`
5108--
5109
5110CREATE TABLE IF NOT EXISTS `divya_country` (
5111 `id` int(11) NOT NULL,
5112 `iso` varchar(10) DEFAULT NULL,
5113 `country` varchar(100) DEFAULT NULL,
5114 `capital` varchar(100) DEFAULT NULL,
5115 `cities` tinyint(4) NOT NULL DEFAULT '0'
5116) ENGINE=MyISAM AUTO_INCREMENT=250 DEFAULT CHARSET=utf8 COMMENT='Stores a list of all countries and their capital cities';
5117
5118--
5119-- Dumping data for table `divya_country`
5120--
5121
5122INSERT INTO `divya_country` (`id`, `iso`, `country`, `capital`, `cities`) VALUES
5123(1, 'AD', 'Andorra', 'Andorra la Vella', 0),
5124(2, 'AE', 'United Arab Emirates', 'Abu Dhabi', 0),
5125(3, 'AF', 'Afghanistan', 'Kabul', 0),
5126(4, 'AG', 'Antigua and Barbuda', 'St. John''s', 0),
5127(5, 'AI', 'Anguilla', 'The Valley', 0),
5128(6, 'AL', 'Albania', 'Tirana', 0),
5129(7, 'AM', 'Armenia', 'Yerevan', 0),
5130(8, 'AN', 'Netherlands Antilles', 'Willemstad', 0),
5131(9, 'AO', 'Angola', 'Luanda', 0),
5132(10, 'AQ', 'Antarctica', '', 0),
5133(11, 'AR', 'Argentina', 'Buenos Aires', 0),
5134(12, 'AS', 'American Samoa', 'Pago Pago', 0),
5135(13, 'AT', 'Austria', 'Vienna', 0),
5136(14, 'AU', 'Australia', 'Canberra', 0),
5137(15, 'AW', 'Aruba', 'Oranjestad', 0),
5138(16, 'AX', 'Aland Islands', 'Mariehamn', 0),
5139(17, 'AZ', 'Azerbaijan', 'Baku', 0),
5140(18, 'BA', 'Bosnia and Herzegovina', 'Sarajevo', 0),
5141(19, 'BB', 'Barbados', 'Bridgetown', 0),
5142(20, 'BD', 'Bangladesh', 'Dhaka', 0),
5143(21, 'BE', 'Belgium', 'Brussels', 0),
5144(22, 'BF', 'Burkina Faso', 'Ouagadougou', 0),
5145(23, 'BG', 'Bulgaria', 'Sofia', 0),
5146(24, 'BH', 'Bahrain', 'Manama', 0),
5147(25, 'BI', 'Burundi', 'Bujumbura', 0),
5148(26, 'BJ', 'Benin', 'Porto-Novo', 0),
5149(27, 'BL', 'Saint Barthélemy', 'Gustavia', 0),
5150(28, 'BM', 'Bermuda', 'Hamilton', 0),
5151(29, 'BN', 'Brunei', 'Bandar Seri Begawan', 0),
5152(30, 'BO', 'Bolivia', 'La Paz', 0),
5153(31, 'BR', 'Brazil', 'BrasÃÂlia', 0),
5154(32, 'BS', 'Bahamas', 'Nassau', 0),
5155(33, 'BT', 'Bhutan', 'Thimphu', 0),
5156(34, 'BV', 'Bouvet Island', '', 0),
5157(35, 'BW', 'Botswana', 'Gaborone', 0),
5158(36, 'BY', 'Belarus', 'Minsk', 0),
5159(37, 'BZ', 'Belize', 'Belmopan', 0),
5160(38, 'CA', 'Canada', 'Ottawa', 0),
5161(39, 'CC', 'Cocos Islands', 'West Island', 0),
5162(40, 'CD', 'Democratic Republic of the Congo', 'Kinshasa', 0),
5163(41, 'CF', 'Central African Republic', 'Bangui', 0),
5164(42, 'CG', 'Congo Brazzavile', 'Brazzaville', 0),
5165(43, 'CH', 'Switzerland', 'Berne', 0),
5166(44, 'CI', 'Ivory Coast', 'Yamoussoukro', 0),
5167(45, 'CK', 'Cook Islands', 'Avarua', 0),
5168(46, 'CL', 'Chile', 'Santiago', 0),
5169(47, 'CM', 'Cameroon', 'Yaoundé', 0),
5170(48, 'CN', 'China', 'Beijing', 0),
5171(49, 'CO', 'Colombia', 'Bogotá', 0),
5172(50, 'CR', 'Costa Rica', 'San José', 0),
5173(51, 'CS', 'Serbia and Montenegro', 'Belgrade', 0),
5174(52, 'CU', 'Cuba', 'Havana', 0),
5175(53, 'CV', 'Cape Verde', 'Praia', 0),
5176(54, 'CX', 'Christmas Island', 'Flying Fish Cove', 0),
5177(55, 'CY', 'Cyprus', 'Nicosia', 0),
5178(56, 'CZ', 'Czech Republic', 'Prague', 0),
5179(57, 'DE', 'Germany', 'Berlin', 0),
5180(58, 'DJ', 'Djibouti', 'Djibouti', 0),
5181(59, 'DK', 'Denmark', 'Copenhagen', 0),
5182(60, 'DM', 'Dominica', 'Roseau', 0),
5183(61, 'DO', 'Dominican Republic', 'Santo Domingo', 0),
5184(62, 'DZ', 'Algeria', 'Algiers', 0),
5185(63, 'EC', 'Ecuador', 'Quito', 0),
5186(64, 'EE', 'Estonia', 'Tallinn', 0),
5187(65, 'EG', 'Egypt', 'Cairo', 0),
5188(66, 'EH', 'Western Sahara', 'El-Aaiun', 0),
5189(67, 'ER', 'Eritrea', 'Asmara', 0),
5190(68, 'ES', 'Spain', 'Madrid', 0),
5191(69, 'ET', 'Ethiopia', 'Addis Ababa', 0),
5192(70, 'FI', 'Finland', 'Helsinki', 0),
5193(71, 'FJ', 'Fiji', 'Suva', 0),
5194(72, 'FK', 'Falkland Islands', 'Stanley', 0),
5195(73, 'FM', 'Micronesia', 'Palikir', 0),
5196(74, 'FO', 'Faroe Islands', 'Tórshavn', 0),
5197(75, 'FR', 'France', 'Paris', 0),
5198(76, 'GA', 'Gabon', 'Libreville', 0),
5199(77, 'GB', 'United Kingdom', 'London', 0),
5200(78, 'GD', 'Grenada', 'St. George''s', 0),
5201(79, 'GE', 'Georgia', 'Tbilisi', 0),
5202(80, 'GF', 'French Guiana', 'Cayenne', 0),
5203(81, 'GG', 'Guernsey', 'St Peter Port', 0),
5204(82, 'GH', 'Ghana', 'Accra', 0),
5205(83, 'GI', 'Gibraltar', 'Gibraltar', 0),
5206(84, 'GL', 'Greenland', 'Nuuk', 0),
5207(85, 'GM', 'Gambia', 'Banjul', 0),
5208(86, 'GN', 'Guinea', 'Conakry', 0),
5209(87, 'GP', 'Guadeloupe', 'Basse-Terre', 0),
5210(88, 'GQ', 'Equatorial Guinea', 'Malabo', 0),
5211(89, 'GR', 'Greece', 'Athens', 0),
5212(90, 'GS', 'South Georgia and the South Sandwich Islands', 'Grytviken', 0),
5213(91, 'GT', 'Guatemala', 'Guatemala City', 0),
5214(92, 'GU', 'Guam', 'Hagåtña', 0),
5215(93, 'GW', 'Guinea-Bissau', 'Bissau', 0),
5216(94, 'GY', 'Guyana', 'Georgetown', 0),
5217(95, 'HK', 'Hong Kong', 'Hong Kong', 0),
5218(96, 'HM', 'Heard Island and McDonald Islands', '', 0),
5219(97, 'HN', 'Honduras', 'Tegucigalpa', 0),
5220(98, 'HR', 'Croatia', 'Zagreb', 0),
5221(99, 'HT', 'Haiti', 'Port-au-Prince', 0),
5222(100, 'HU', 'Hungary', 'Budapest', 0),
5223(101, 'ID', 'Indonesia', 'Jakarta', 0),
5224(102, 'IE', 'Ireland', 'Dublin', 0),
5225(103, 'IL', 'Israel', 'Jerusalem', 0),
5226(104, 'IM', 'Isle of Man', 'Douglas, Isle of Man', 0),
5227(105, 'IN', 'India', 'New Delhi', 0),
5228(106, 'IO', 'British Indian Ocean Territory', 'Diego Garcia', 0),
5229(107, 'IQ', 'Iraq', 'Baghdad', 0),
5230(108, 'IR', 'Iran', 'Tehran', 0),
5231(109, 'IS', 'Iceland', 'ReykjavÃÂk', 0),
5232(110, 'IT', 'Italy', 'Rome', 0),
5233(111, 'JE', 'Jersey', 'Saint Helier', 0),
5234(112, 'JM', 'Jamaica', 'Kingston', 0),
5235(113, 'JO', 'Jordan', 'Amman', 0),
5236(114, 'JP', 'Japan', 'Tokyo', 0),
5237(115, 'KE', 'Kenya', 'Nairobi', 0),
5238(116, 'KG', 'Kyrgyzstan', 'Bishkek', 0),
5239(117, 'KH', 'Cambodia', 'Phnom Penh', 0),
5240(118, 'KI', 'Kiribati', 'South Tarawa', 0),
5241(119, 'KM', 'Comoros', 'Moroni', 0),
5242(120, 'KN', 'Saint Kitts and Nevis', 'Basseterre', 0),
5243(121, 'KP', 'North Korea', 'Pyongyang', 0),
5244(122, 'KR', 'South Korea', 'Seoul', 0),
5245(123, 'KW', 'Kuwait', 'Kuwait City', 0),
5246(124, 'KY', 'Cayman Islands', 'George Town', 0),
5247(125, 'KZ', 'Kazakhstan', 'Astana', 0),
5248(126, 'LA', 'Laos', 'Vientiane', 0),
5249(127, 'LB', 'Lebanon', 'Beirut', 0),
5250(128, 'LC', 'Saint Lucia', 'Castries', 0),
5251(129, 'LI', 'Liechtenstein', 'Vaduz', 0),
5252(130, 'LK', 'Sri Lanka', 'Colombo', 0),
5253(131, 'LR', 'Liberia', 'Monrovia', 0),
5254(132, 'LS', 'Lesotho', 'Maseru', 0),
5255(133, 'LT', 'Lithuania', 'Vilnius', 0),
5256(134, 'LU', 'Luxembourg', 'Luxembourg', 0),
5257(135, 'LV', 'Latvia', 'Riga', 0),
5258(136, 'LY', 'Libya', 'Tripolis', 0),
5259(137, 'MA', 'Morocco', 'Rabat', 0),
5260(138, 'MC', 'Monaco', 'Monaco', 0),
5261(139, 'MD', 'Moldova', 'Chi_in_u', 0),
5262(140, 'ME', 'Montenegro', 'Podgorica', 0),
5263(141, 'MF', 'Saint Martin', 'Marigot', 0),
5264(142, 'MG', 'Madagascar', 'Antananarivo', 0),
5265(143, 'MH', 'Marshall Islands', 'Uliga', 0),
5266(144, 'MK', 'Macedonia', 'Skopje', 0),
5267(145, 'ML', 'Mali', 'Bamako', 0),
5268(146, 'MM', 'Myanmar', 'Yangon', 0),
5269(147, 'MN', 'Mongolia', 'Ulan Bator', 0),
5270(148, 'MO', 'Macao', 'Macao', 0),
5271(149, 'MP', 'Northern Mariana Islands', 'Saipan', 0),
5272(150, 'MQ', 'Martinique', 'Fort-de-France', 0),
5273(151, 'MR', 'Mauritania', 'Nouakchott', 0),
5274(152, 'MS', 'Montserrat', 'Plymouth', 0),
5275(153, 'MT', 'Malta', 'Valletta', 0),
5276(154, 'MU', 'Mauritius', 'Port Louis', 0),
5277(155, 'MV', 'Maldives', 'Malé', 0),
5278(156, 'MW', 'Malawi', 'Lilongwe', 0),
5279(157, 'MX', 'Mexico', 'Mexico City', 0),
5280(158, 'MY', 'Malaysia', 'Kuala Lumpur', 0),
5281(159, 'MZ', 'Mozambique', 'Maputo', 0),
5282(160, 'NA', 'Namibia', 'Windhoek', 0),
5283(161, 'NC', 'New Caledonia', 'Nouméa', 0),
5284(162, 'NE', 'Niger', 'Niamey', 0),
5285(163, 'NF', 'Norfolk Island', 'Kingston', 0),
5286(164, 'NG', 'Nigeria', 'Abuja', 0),
5287(165, 'NI', 'Nicaragua', 'Managua', 0),
5288(166, 'NL', 'Netherlands', 'Amsterdam', 0),
5289(167, 'NO', 'Norway', 'Oslo', 0),
5290(168, 'NP', 'Nepal', 'Kathmandu', 0),
5291(169, 'NR', 'Nauru', 'Yaren', 0),
5292(170, 'NU', 'Niue', 'Alofi', 0),
5293(171, 'NZ', 'New Zealand', 'Wellington', 0),
5294(172, 'OM', 'Oman', 'Muscat', 0),
5295(173, 'PA', 'Panama', 'Panama City', 0),
5296(174, 'PE', 'Peru', 'Lima', 0),
5297(175, 'PF', 'French Polynesia', 'Papeete', 0),
5298(176, 'PG', 'Papua New Guinea', 'Port Moresby', 0),
5299(177, 'PH', 'Philippines', 'Manila', 0),
5300(178, 'PK', 'Pakistan', 'Islamabad', 0),
5301(179, 'PL', 'Poland', 'Warsaw', 0),
5302(180, 'PM', 'Saint Pierre and Miquelon', 'Saint-Pierre', 0),
5303(181, 'PN', 'Pitcairn', 'Adamstown', 0),
5304(182, 'PR', 'Puerto Rico', 'San Juan', 0),
5305(183, 'PS', 'Palestinian Territory', 'East Jerusalem', 0),
5306(184, 'PT', 'Portugal', 'Lisbon', 0),
5307(185, 'PW', 'Palau', 'Koror', 0),
5308(186, 'PY', 'Paraguay', 'Asunción', 0),
5309(187, 'QA', 'Qatar', 'Doha', 0),
5310(188, 'RE', 'Reunion', 'Saint-Denis', 0),
5311(189, 'RO', 'Romania', 'Bucharest', 0),
5312(190, 'RS', 'Serbia', 'Belgrade', 0),
5313(191, 'RU', 'Russia', 'Moscow', 0),
5314(192, 'RW', 'Rwanda', 'Kigali', 0),
5315(193, 'SA', 'Saudi Arabia', 'Riyadh', 0),
5316(194, 'SB', 'Solomon Islands', 'Honiara', 0),
5317(195, 'SC', 'Seychelles', 'Victoria', 0),
5318(196, 'SD', 'Sudan', 'Khartoum', 0),
5319(197, 'SE', 'Sweden', 'Stockholm', 0),
5320(198, 'SG', 'Singapore', 'Singapur', 0),
5321(199, 'SH', 'Saint Helena', 'Jamestown', 0),
5322(200, 'SI', 'Slovenia', 'Ljubljana', 0),
5323(201, 'SJ', 'Svalbard and Jan Mayen', 'Longyearbyen', 0),
5324(202, 'SK', 'Slovakia', 'Bratislava', 0),
5325(203, 'SL', 'Sierra Leone', 'Freetown', 0),
5326(204, 'SM', 'San Marino', 'San Marino', 0),
5327(205, 'SN', 'Senegal', 'Dakar', 0),
5328(206, 'SO', 'Somalia', 'Mogadishu', 0),
5329(207, 'SR', 'Suriname', 'Paramaribo', 0),
5330(208, 'ST', 'Sao Tome and Principe', 'São Tomé', 0),
5331(209, 'SV', 'El Salvador', 'San Salvador', 0),
5332(210, 'SY', 'Syria', 'Damascus', 0),
5333(211, 'SZ', 'Swaziland', 'Mbabane', 0),
5334(212, 'TC', 'Turks and Caicos Islands', 'Cockburn Town', 0),
5335(213, 'TD', 'Chad', 'N''Djamena', 0),
5336(214, 'TF', 'French Southern Territories', 'Martin-de-Viviès', 0),
5337(215, 'TG', 'Togo', 'Lomé', 0),
5338(216, 'TH', 'Thailand', 'Bangkok', 0),
5339(217, 'TJ', 'Tajikistan', 'Dushanbe', 0),
5340(218, 'TK', 'Tokelau', '', 0),
5341(219, 'TL', 'East Timor', 'Dili', 0),
5342(220, 'TM', 'Turkmenistan', 'Ashgabat', 0),
5343(221, 'TN', 'Tunisia', 'Tunis', 0),
5344(222, 'TO', 'Tonga', 'Nuku''alofa', 0),
5345(223, 'TR', 'Turkey', 'Ankara', 0),
5346(224, 'TT', 'Trinidad and Tobago', 'Port of Spain', 0),
5347(225, 'TV', 'Tuvalu', 'Vaiaku', 0),
5348(226, 'TW', 'Taiwan', 'Taipei', 0),
5349(227, 'TZ', 'Tanzania', 'Dar es Salaam', 0),
5350(228, 'UA', 'Ukraine', 'Kiev', 0),
5351(229, 'UG', 'Uganda', 'Kampala', 0),
5352(230, 'UM', 'United States Minor Outlying Islands', '', 0),
5353(231, 'US', 'United States', 'Washington', 0),
5354(232, 'UY', 'Uruguay', 'Montevideo', 0),
5355(233, 'UZ', 'Uzbekistan', 'Tashkent', 0),
5356(234, 'VA', 'Vatican', 'Vatican City', 0),
5357(235, 'VC', 'Saint Vincent and the Grenadines', 'Kingstown', 0),
5358(236, 'VE', 'Venezuela', 'Caracas', 0),
5359(237, 'VG', 'British Virgin Islands', 'Road Town', 0),
5360(238, 'VI', 'U.S. Virgin Islands', 'Charlotte Amalie', 0),
5361(239, 'VN', 'Vietnam', 'Hanoi', 0),
5362(240, 'VU', 'Vanuatu', 'Port Vila', 0),
5363(241, 'WF', 'Wallis and Futuna', 'Matâ''Utu', 0),
5364(242, 'WS', 'Samoa', 'Apia', 0),
5365(243, 'YE', 'Yemen', 'San‘a’', 0),
5366(244, 'YT', 'Mayotte', 'Mamoudzou', 0),
5367(245, 'ZA', 'South Africa', 'Pretoria', 0),
5368(246, 'ZM', 'Zambia', 'Lusaka', 0),
5369(247, 'ZW', 'Zimbabwe', 'Harare', 0),
5370(248, 'XK', 'Kosovo', 'Pristina', 0),
5371(249, 'SS', 'South Sudan', 'Juba', 0);
5372
5373-- --------------------------------------------------------
5374
5375--
5376-- Table structure for table `divya_externalapp`
5377--
5378
5379CREATE TABLE IF NOT EXISTS `divya_externalapp` (
5380 `id` int(11) NOT NULL,
5381 `name` varchar(255) NOT NULL,
5382 `url` varchar(255) NOT NULL
5383) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Info on external apps(mobile) that work with your deployment';
5384
5385--
5386-- Dumping data for table `divya_externalapp`
5387--
5388
5389INSERT INTO `divya_externalapp` (`id`, `name`, `url`) VALUES
5390(1, 'iPhone', 'http://download.ushahidi.com/track_download.php?download=ios'),
5391(2, 'Android', 'http://download.ushahidi.com/track_download.php?download=android');
5392
5393-- --------------------------------------------------------
5394
5395--
5396-- Table structure for table `divya_feed`
5397--
5398
5399CREATE TABLE IF NOT EXISTS `divya_feed` (
5400 `id` int(11) unsigned NOT NULL,
5401 `feed_name` varchar(255) DEFAULT NULL,
5402 `feed_url` varchar(255) DEFAULT NULL,
5403 `feed_cache` text,
5404 `feed_active` tinyint(4) DEFAULT '1',
5405 `feed_update` int(11) NOT NULL DEFAULT '0'
5406) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Information about RSS Feeds a deployment subscribes to';
5407
5408-- --------------------------------------------------------
5409
5410--
5411-- Table structure for table `divya_feed_item`
5412--
5413
5414CREATE TABLE IF NOT EXISTS `divya_feed_item` (
5415 `id` bigint(20) unsigned NOT NULL,
5416 `feed_id` int(11) unsigned NOT NULL,
5417 `location_id` bigint(20) unsigned DEFAULT '0',
5418 `incident_id` bigint(20) unsigned NOT NULL DEFAULT '0',
5419 `item_title` varchar(255) DEFAULT NULL,
5420 `item_description` text,
5421 `item_link` varchar(255) DEFAULT NULL,
5422 `item_date` datetime DEFAULT NULL
5423) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores feed items pulled from each RSS Feed';
5424
5425-- --------------------------------------------------------
5426
5427--
5428-- Table structure for table `divya_feed_item_category`
5429--
5430
5431CREATE TABLE IF NOT EXISTS `divya_feed_item_category` (
5432 `id` int(11) NOT NULL,
5433 `feed_item_id` bigint(20) unsigned NOT NULL DEFAULT '0',
5434 `category_id` int(11) unsigned NOT NULL DEFAULT '0'
5435) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores fetched feed items categories';
5436
5437-- --------------------------------------------------------
5438
5439--
5440-- Table structure for table `divya_form`
5441--
5442
5443CREATE TABLE IF NOT EXISTS `divya_form` (
5444 `id` int(11) NOT NULL,
5445 `form_title` varchar(200) NOT NULL,
5446 `form_description` text,
5447 `form_active` tinyint(4) DEFAULT '1',
5448 `report_title_name` varchar(200) DEFAULT NULL,
5449 `description_name` varchar(200) DEFAULT NULL,
5450 `description_active` tinyint(4) DEFAULT '1'
5451) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Stores all report submission forms created(default+custom)';
5452
5453--
5454-- Dumping data for table `divya_form`
5455--
5456
5457INSERT INTO `divya_form` (`id`, `form_title`, `form_description`, `form_active`, `report_title_name`, `description_name`, `description_active`) VALUES
5458(1, 'Default Form', 'Default form, for report entry', 1, NULL, NULL, 1);
5459
5460-- --------------------------------------------------------
5461
5462--
5463-- Table structure for table `divya_form_field`
5464--
5465
5466CREATE TABLE IF NOT EXISTS `divya_form_field` (
5467 `id` int(11) NOT NULL,
5468 `form_id` int(11) NOT NULL DEFAULT '1',
5469 `field_name` varchar(200) DEFAULT NULL,
5470 `field_description` text,
5471 `field_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1 - TEXTFIELD, 2 - TEXTAREA (FREETEXT), 3 - DATE, 4 - PASSWORD, 5 - RADIO, 6 - CHECKBOX',
5472 `field_required` tinyint(4) DEFAULT '0',
5473 `field_position` tinyint(4) NOT NULL DEFAULT '0',
5474 `field_default` text,
5475 `field_maxlength` int(11) NOT NULL DEFAULT '0',
5476 `field_width` smallint(6) NOT NULL DEFAULT '0',
5477 `field_height` tinyint(4) DEFAULT '5',
5478 `field_isdate` tinyint(4) NOT NULL DEFAULT '0',
5479 `field_ispublic_visible` tinyint(4) NOT NULL DEFAULT '0',
5480 `field_ispublic_submit` tinyint(4) NOT NULL DEFAULT '0'
5481) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores all custom form fields created by users';
5482
5483-- --------------------------------------------------------
5484
5485--
5486-- Table structure for table `divya_form_field_option`
5487--
5488
5489CREATE TABLE IF NOT EXISTS `divya_form_field_option` (
5490 `id` int(11) NOT NULL,
5491 `form_field_id` int(11) NOT NULL DEFAULT '0',
5492 `option_name` varchar(200) DEFAULT NULL,
5493 `option_value` text
5494) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Options related to custom form fields';
5495
5496-- --------------------------------------------------------
5497
5498--
5499-- Table structure for table `divya_form_response`
5500--
5501
5502CREATE TABLE IF NOT EXISTS `divya_form_response` (
5503 `id` bigint(20) NOT NULL,
5504 `form_field_id` int(11) NOT NULL,
5505 `incident_id` bigint(20) unsigned NOT NULL,
5506 `form_response` text NOT NULL
5507) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores responses to custom form fields';
5508
5509-- --------------------------------------------------------
5510
5511--
5512-- Table structure for table `divya_geometry`
5513--
5514
5515CREATE TABLE IF NOT EXISTS `divya_geometry` (
5516 `id` int(11) unsigned NOT NULL,
5517 `incident_id` bigint(20) unsigned NOT NULL,
5518 `geometry` geometry NOT NULL,
5519 `geometry_label` varchar(150) DEFAULT NULL,
5520 `geometry_comment` varchar(255) DEFAULT NULL,
5521 `geometry_color` varchar(20) DEFAULT NULL,
5522 `geometry_strokewidth` varchar(5) DEFAULT NULL
5523) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores map geometries i.e polygons, lines etc';
5524
5525-- --------------------------------------------------------
5526
5527--
5528-- Table structure for table `divya_incident`
5529--
5530
5531CREATE TABLE IF NOT EXISTS `divya_incident` (
5532 `id` bigint(20) unsigned NOT NULL,
5533 `location_id` bigint(20) unsigned NOT NULL,
5534 `form_id` int(11) NOT NULL DEFAULT '1',
5535 `locale` varchar(10) NOT NULL DEFAULT 'en_US',
5536 `user_id` int(11) unsigned DEFAULT NULL,
5537 `incident_title` varchar(255) DEFAULT NULL,
5538 `incident_description` longtext,
5539 `incident_date` datetime DEFAULT NULL,
5540 `incident_mode` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1 - WEB, 2 - SMS, 3 - EMAIL, 4 - TWITTER',
5541 `incident_active` tinyint(4) NOT NULL DEFAULT '0',
5542 `incident_verified` tinyint(4) NOT NULL DEFAULT '0',
5543 `incident_dateadd` datetime DEFAULT NULL,
5544 `incident_dateadd_gmt` datetime DEFAULT NULL,
5545 `incident_datemodify` datetime DEFAULT NULL,
5546 `incident_alert_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0 - Not Tagged for Sending, 1 - Tagged for Sending, 2 - Alerts Have Been Sent',
5547 `incident_zoom` tinyint(4) DEFAULT NULL
5548) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Stores reports submitted';
5549
5550--
5551-- Dumping data for table `divya_incident`
5552--
5553
5554INSERT INTO `divya_incident` (`id`, `location_id`, `form_id`, `locale`, `user_id`, `incident_title`, `incident_description`, `incident_date`, `incident_mode`, `incident_active`, `incident_verified`, `incident_dateadd`, `incident_dateadd_gmt`, `incident_datemodify`, `incident_alert_status`, `incident_zoom`) VALUES
5555(1, 1, 1, 'en_US', 1, 'Hello Ushahidi!', 'Welcome to Ushahidi. Please replace this report with a valid incident', '2012-04-04 12:54:31', 1, 1, 1, NULL, NULL, NULL, 0, NULL);
5556
5557-- --------------------------------------------------------
5558
5559--
5560-- Table structure for table `divya_incident_category`
5561--
5562
5563CREATE TABLE IF NOT EXISTS `divya_incident_category` (
5564 `id` int(11) NOT NULL,
5565 `incident_id` bigint(20) unsigned NOT NULL DEFAULT '0',
5566 `category_id` int(11) unsigned NOT NULL DEFAULT '0'
5567) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Stores submitted reports categories';
5568
5569--
5570-- Dumping data for table `divya_incident_category`
5571--
5572
5573INSERT INTO `divya_incident_category` (`id`, `incident_id`, `category_id`) VALUES
5574(1, 1, 1);
5575
5576-- --------------------------------------------------------
5577
5578--
5579-- Table structure for table `divya_incident_lang`
5580--
5581
5582CREATE TABLE IF NOT EXISTS `divya_incident_lang` (
5583 `id` bigint(20) unsigned NOT NULL,
5584 `incident_id` bigint(20) unsigned NOT NULL,
5585 `locale` varchar(10) DEFAULT NULL,
5586 `incident_title` varchar(255) DEFAULT NULL,
5587 `incident_description` longtext
5588) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Holds translations for report titles and descriptions';
5589
5590-- --------------------------------------------------------
5591
5592--
5593-- Table structure for table `divya_incident_person`
5594--
5595
5596CREATE TABLE IF NOT EXISTS `divya_incident_person` (
5597 `id` bigint(20) unsigned NOT NULL,
5598 `incident_id` bigint(20) unsigned DEFAULT NULL,
5599 `person_first` varchar(200) DEFAULT NULL,
5600 `person_last` varchar(200) DEFAULT NULL,
5601 `person_email` varchar(120) DEFAULT NULL,
5602 `person_phone` varchar(60) DEFAULT NULL,
5603 `person_ip` varchar(50) DEFAULT NULL,
5604 `person_date` datetime DEFAULT NULL
5605) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Holds information provided by people who submit reports';
5606
5607-- --------------------------------------------------------
5608
5609--
5610-- Table structure for table `divya_layer`
5611--
5612
5613CREATE TABLE IF NOT EXISTS `divya_layer` (
5614 `id` int(11) NOT NULL,
5615 `layer_name` varchar(255) DEFAULT NULL,
5616 `layer_url` varchar(255) DEFAULT NULL,
5617 `layer_file` varchar(100) DEFAULT NULL,
5618 `layer_color` varchar(20) DEFAULT NULL,
5619 `layer_visible` tinyint(4) NOT NULL DEFAULT '1'
5620) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Holds static layer information';
5621
5622-- --------------------------------------------------------
5623
5624--
5625-- Table structure for table `divya_level`
5626--
5627
5628CREATE TABLE IF NOT EXISTS `divya_level` (
5629 `id` int(11) unsigned NOT NULL,
5630 `level_title` varchar(200) DEFAULT NULL,
5631 `level_description` varchar(200) DEFAULT NULL,
5632 `level_weight` tinyint(4) NOT NULL
5633) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Stores level of trust assigned to reporters of the platform';
5634
5635--
5636-- Dumping data for table `divya_level`
5637--
5638
5639INSERT INTO `divya_level` (`id`, `level_title`, `level_description`, `level_weight`) VALUES
5640(1, 'SPAM + Delete', 'SPAM + Delete', -2),
5641(2, 'SPAM', 'SPAM', -1),
5642(3, 'Untrusted', 'Untrusted', 0),
5643(4, 'Trusted', 'Trusted', 1),
5644(5, 'Trusted + Verify', 'Trusted + Verify', 2);
5645
5646-- --------------------------------------------------------
5647
5648--
5649-- Table structure for table `divya_location`
5650--
5651
5652CREATE TABLE IF NOT EXISTS `divya_location` (
5653 `id` bigint(20) unsigned NOT NULL,
5654 `location_name` varchar(255) DEFAULT NULL,
5655 `country_id` int(11) NOT NULL DEFAULT '0',
5656 `latitude` double NOT NULL DEFAULT '0',
5657 `longitude` double NOT NULL DEFAULT '0',
5658 `location_visible` tinyint(4) NOT NULL DEFAULT '1',
5659 `location_date` datetime DEFAULT NULL
5660) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Stores location information';
5661
5662--
5663-- Dumping data for table `divya_location`
5664--
5665
5666INSERT INTO `divya_location` (`id`, `location_name`, `country_id`, `latitude`, `longitude`, `location_visible`, `location_date`) VALUES
5667(1, 'Nairobi', 115, -1.28730007070501, 36.8214511820082, 1, '2009-06-30 00:00:00');
5668
5669-- --------------------------------------------------------
5670
5671--
5672-- Table structure for table `divya_maintenance`
5673--
5674
5675CREATE TABLE IF NOT EXISTS `divya_maintenance` (
5676 `allowed_ip` varchar(15) NOT NULL
5677) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Puts a site in maintenance mode if data exists in this table';
5678
5679-- --------------------------------------------------------
5680
5681--
5682-- Table structure for table `divya_media`
5683--
5684
5685CREATE TABLE IF NOT EXISTS `divya_media` (
5686 `id` bigint(20) unsigned NOT NULL,
5687 `location_id` bigint(20) unsigned DEFAULT NULL,
5688 `incident_id` bigint(20) unsigned DEFAULT NULL,
5689 `message_id` bigint(20) unsigned DEFAULT NULL,
5690 `badge_id` int(11) DEFAULT NULL,
5691 `media_type` tinyint(4) DEFAULT NULL COMMENT '1 - IMAGES, 2 - VIDEO, 3 - AUDIO, 4 - NEWS, 5 - PODCAST',
5692 `media_title` varchar(255) DEFAULT NULL,
5693 `media_description` longtext,
5694 `media_link` varchar(255) DEFAULT NULL,
5695 `media_medium` varchar(255) DEFAULT NULL,
5696 `media_thumb` varchar(255) DEFAULT NULL,
5697 `media_date` datetime DEFAULT NULL,
5698 `media_active` tinyint(4) NOT NULL DEFAULT '1'
5699) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores any media submitted along with a report';
5700
5701-- --------------------------------------------------------
5702
5703--
5704-- Table structure for table `divya_message`
5705--
5706
5707CREATE TABLE IF NOT EXISTS `divya_message` (
5708 `id` bigint(20) unsigned NOT NULL,
5709 `parent_id` bigint(20) DEFAULT '0',
5710 `incident_id` bigint(20) unsigned DEFAULT '0',
5711 `user_id` int(11) unsigned DEFAULT '0',
5712 `reporter_id` bigint(20) unsigned DEFAULT NULL,
5713 `service_messageid` varchar(100) DEFAULT NULL,
5714 `message_from` varchar(100) DEFAULT NULL,
5715 `message_to` varchar(100) DEFAULT NULL,
5716 `message` text,
5717 `message_detail` text,
5718 `message_type` tinyint(4) DEFAULT '1' COMMENT '1 - INBOX, 2 - OUTBOX (From Admin), 3 - DELETED',
5719 `message_date` datetime DEFAULT NULL,
5720 `message_level` tinyint(4) DEFAULT '0' COMMENT '0 - UNREAD, 1 - READ, 99 - SPAM',
5721 `latitude` double DEFAULT NULL,
5722 `longitude` double DEFAULT NULL
5723) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores tweets, emails and SMS messages';
5724
5725-- --------------------------------------------------------
5726
5727--
5728-- Table structure for table `divya_openid`
5729--
5730
5731CREATE TABLE IF NOT EXISTS `divya_openid` (
5732 `id` int(11) NOT NULL,
5733 `user_id` int(11) unsigned NOT NULL,
5734 `openid` varchar(255) NOT NULL,
5735 `openid_email` varchar(127) NOT NULL,
5736 `openid_server` varchar(255) NOT NULL,
5737 `openid_date` datetime NOT NULL
5738) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores users’ openid information';
5739
5740-- --------------------------------------------------------
5741
5742--
5743-- Table structure for table `divya_page`
5744--
5745
5746CREATE TABLE IF NOT EXISTS `divya_page` (
5747 `id` int(11) NOT NULL,
5748 `page_title` varchar(255) NOT NULL,
5749 `page_description` longtext,
5750 `page_tab` varchar(100) NOT NULL,
5751 `page_active` tinyint(4) NOT NULL DEFAULT '0'
5752) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores user created pages';
5753
5754-- --------------------------------------------------------
5755
5756--
5757-- Table structure for table `divya_permissions`
5758--
5759
5760CREATE TABLE IF NOT EXISTS `divya_permissions` (
5761 `id` int(11) NOT NULL,
5762 `name` varchar(32) NOT NULL
5763) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=latin1 COMMENT='Stores permissions used for access control';
5764
5765--
5766-- Dumping data for table `divya_permissions`
5767--
5768
5769INSERT INTO `divya_permissions` (`id`, `name`) VALUES
5770(1, 'reports_view'),
5771(2, 'reports_edit'),
5772(4, 'reports_comments'),
5773(5, 'reports_download'),
5774(6, 'reports_upload'),
5775(7, 'messages'),
5776(8, 'messages_reporters'),
5777(9, 'stats'),
5778(10, 'settings'),
5779(11, 'manage'),
5780(12, 'users'),
5781(13, 'manage_roles'),
5782(16, 'reports_verify'),
5783(17, 'reports_approve'),
5784(18, 'admin_ui'),
5785(19, 'member_ui'),
5786(20, 'delete_all_reports');
5787
5788-- --------------------------------------------------------
5789
5790--
5791-- Table structure for table `divya_permissions_roles`
5792--
5793
5794CREATE TABLE IF NOT EXISTS `divya_permissions_roles` (
5795 `role_id` int(11) NOT NULL,
5796 `permission_id` int(11) NOT NULL
5797) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Stores permissions assigned to roles';
5798
5799--
5800-- Dumping data for table `divya_permissions_roles`
5801--
5802
5803INSERT INTO `divya_permissions_roles` (`role_id`, `permission_id`) VALUES
5804(1, 14),
5805(2, 1),
5806(2, 2),
5807(2, 4),
5808(2, 5),
5809(2, 6),
5810(2, 7),
5811(2, 8),
5812(2, 9),
5813(2, 10),
5814(2, 11),
5815(2, 12),
5816(2, 14),
5817(2, 15),
5818(2, 16),
5819(2, 17),
5820(2, 18),
5821(3, 1),
5822(3, 2),
5823(3, 4),
5824(3, 5),
5825(3, 6),
5826(3, 7),
5827(3, 8),
5828(3, 9),
5829(3, 10),
5830(3, 11),
5831(3, 12),
5832(3, 13),
5833(3, 14),
5834(3, 15),
5835(3, 16),
5836(3, 17),
5837(3, 18),
5838(3, 20),
5839(4, 19);
5840
5841-- --------------------------------------------------------
5842
5843--
5844-- Table structure for table `divya_plugin`
5845--
5846
5847CREATE TABLE IF NOT EXISTS `divya_plugin` (
5848 `id` int(11) unsigned NOT NULL,
5849 `plugin_name` varchar(100) NOT NULL,
5850 `plugin_url` varchar(250) DEFAULT NULL,
5851 `plugin_description` text,
5852 `plugin_priority` tinyint(4) DEFAULT '0',
5853 `plugin_active` tinyint(4) DEFAULT '0',
5854 `plugin_installed` tinyint(4) DEFAULT '0'
5855) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Holds a list of all plugins installed on a deployment';
5856
5857--
5858-- Dumping data for table `divya_plugin`
5859--
5860
5861INSERT INTO `divya_plugin` (`id`, `plugin_name`, `plugin_url`, `plugin_description`, `plugin_priority`, `plugin_active`, `plugin_installed`) VALUES
5862(1, 'clickatell', NULL, NULL, 0, 0, 0),
5863(2, 'downloadreports', NULL, NULL, 0, 0, 0),
5864(3, 'frontlinesms', NULL, NULL, 0, 0, 0),
5865(4, 'sharing', NULL, NULL, 0, 0, 0),
5866(5, 'smssync', NULL, NULL, 0, 0, 0);
5867
5868-- --------------------------------------------------------
5869
5870--
5871-- Table structure for table `divya_private_message`
5872--
5873
5874CREATE TABLE IF NOT EXISTS `divya_private_message` (
5875 `id` int(11) NOT NULL,
5876 `parent_id` int(11) NOT NULL DEFAULT '0',
5877 `user_id` int(11) unsigned NOT NULL,
5878 `from_user_id` int(11) DEFAULT '0',
5879 `private_subject` varchar(255) NOT NULL,
5880 `private_message` text NOT NULL,
5881 `private_message_date` datetime NOT NULL,
5882 `private_message_new` tinyint(4) NOT NULL DEFAULT '1'
5883) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores private messages sent between Members';
5884
5885-- --------------------------------------------------------
5886
5887--
5888-- Table structure for table `divya_rating`
5889--
5890
5891CREATE TABLE IF NOT EXISTS `divya_rating` (
5892 `id` bigint(20) unsigned NOT NULL,
5893 `user_id` int(11) unsigned DEFAULT '0',
5894 `incident_id` bigint(20) unsigned DEFAULT NULL,
5895 `comment_id` bigint(20) unsigned DEFAULT NULL,
5896 `rating` tinyint(4) DEFAULT '0',
5897 `rating_ip` varchar(100) DEFAULT NULL,
5898 `rating_date` datetime DEFAULT NULL
5899) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores credibility ratings for reports and comments';
5900
5901-- --------------------------------------------------------
5902
5903--
5904-- Table structure for table `divya_reporter`
5905--
5906
5907CREATE TABLE IF NOT EXISTS `divya_reporter` (
5908 `id` bigint(20) unsigned NOT NULL,
5909 `location_id` bigint(20) unsigned DEFAULT NULL,
5910 `user_id` int(11) unsigned DEFAULT NULL,
5911 `service_id` int(10) unsigned DEFAULT NULL,
5912 `level_id` int(11) unsigned DEFAULT NULL,
5913 `service_account` varchar(255) DEFAULT NULL,
5914 `reporter_first` varchar(200) DEFAULT NULL,
5915 `reporter_last` varchar(200) DEFAULT NULL,
5916 `reporter_email` varchar(120) DEFAULT NULL,
5917 `reporter_phone` varchar(60) DEFAULT NULL,
5918 `reporter_ip` varchar(50) DEFAULT NULL,
5919 `reporter_date` datetime DEFAULT NULL
5920) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Information on report submitters via email, twitter and sms';
5921
5922-- --------------------------------------------------------
5923
5924--
5925-- Table structure for table `divya_roles`
5926--
5927
5928CREATE TABLE IF NOT EXISTS `divya_roles` (
5929 `id` int(11) unsigned NOT NULL,
5930 `name` varchar(32) NOT NULL,
5931 `description` varchar(255) NOT NULL,
5932 `access_level` tinyint(4) NOT NULL DEFAULT '0'
5933) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='Defines user access levels and privileges on a deployment';
5934
5935--
5936-- Dumping data for table `divya_roles`
5937--
5938
5939INSERT INTO `divya_roles` (`id`, `name`, `description`, `access_level`) VALUES
5940(1, 'login', 'Login privileges, granted after account confirmation', 0),
5941(2, 'admin', 'Administrative user, has access to almost everything.', 90),
5942(3, 'superadmin', 'Super administrative user, has access to everything.', 100),
5943(4, 'member', 'Regular user with access only to the member area', 10);
5944
5945-- --------------------------------------------------------
5946
5947--
5948-- Table structure for table `divya_roles_users`
5949--
5950
5951CREATE TABLE IF NOT EXISTS `divya_roles_users` (
5952 `user_id` int(11) unsigned NOT NULL,
5953 `role_id` int(11) unsigned NOT NULL
5954) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores roles assigned to users registered on a deployment';
5955
5956--
5957-- Dumping data for table `divya_roles_users`
5958--
5959
5960INSERT INTO `divya_roles_users` (`user_id`, `role_id`) VALUES
5961(1, 1),
5962(1, 2),
5963(1, 3),
5964(2, 1),
5965(2, 4);
5966
5967-- --------------------------------------------------------
5968
5969--
5970-- Table structure for table `divya_scheduler`
5971--
5972
5973CREATE TABLE IF NOT EXISTS `divya_scheduler` (
5974 `id` int(10) unsigned NOT NULL,
5975 `scheduler_name` varchar(100) NOT NULL,
5976 `scheduler_last` int(10) unsigned NOT NULL DEFAULT '0',
5977 `scheduler_weekday` smallint(6) NOT NULL DEFAULT '-1',
5978 `scheduler_day` smallint(6) NOT NULL DEFAULT '-1',
5979 `scheduler_hour` smallint(6) NOT NULL DEFAULT '-1',
5980 `scheduler_minute` smallint(6) NOT NULL,
5981 `scheduler_controller` varchar(100) NOT NULL,
5982 `scheduler_active` tinyint(4) NOT NULL DEFAULT '1'
5983) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Stores schedules for cron jobs';
5984
5985--
5986-- Dumping data for table `divya_scheduler`
5987--
5988
5989INSERT INTO `divya_scheduler` (`id`, `scheduler_name`, `scheduler_last`, `scheduler_weekday`, `scheduler_day`, `scheduler_hour`, `scheduler_minute`, `scheduler_controller`, `scheduler_active`) VALUES
5990(1, 'Feeds', 1439722928, -1, -1, -1, 0, 's_feeds', 1),
5991(2, 'Alerts', 1439722928, -1, -1, -1, -1, 's_alerts', 1),
5992(3, 'Email', 1439722929, -1, -1, -1, 0, 's_email', 1),
5993(4, 'Twitter', 1439722929, -1, -1, -1, 0, 's_twitter', 1),
5994(5, 'Cleanup', 1439722929, -1, -1, -1, 0, 's_cleanup', 1);
5995
5996-- --------------------------------------------------------
5997
5998--
5999-- Table structure for table `divya_scheduler_log`
6000--
6001
6002CREATE TABLE IF NOT EXISTS `divya_scheduler_log` (
6003 `id` bigint(20) unsigned NOT NULL,
6004 `scheduler_id` int(10) unsigned NOT NULL,
6005 `scheduler_status` varchar(20) DEFAULT NULL,
6006 `scheduler_date` int(10) unsigned NOT NULL
6007) ENGINE=MyISAM AUTO_INCREMENT=63 DEFAULT CHARSET=utf8 COMMENT='Stores a log of scheduler actions';
6008
6009--
6010-- Dumping data for table `divya_scheduler_log`
6011--
6012
6013INSERT INTO `divya_scheduler_log` (`id`, `scheduler_id`, `scheduler_status`, `scheduler_date`) VALUES
6014(1, 1, '200', 1433507635),
6015(2, 2, '200', 1433507635),
6016(3, 3, '200', 1433507635),
6017(4, 4, '200', 1433507635),
6018(5, 5, '200', 1433507635),
6019(6, 2, '200', 1433508290),
6020(7, 2, '200', 1433508483),
6021(8, 2, '200', 1433508585),
6022(9, 2, '200', 1433508713),
6023(10, 2, '200', 1433508720),
6024(11, 2, '200', 1433508722),
6025(12, 2, '200', 1433508791),
6026(13, 2, '200', 1433509062),
6027(14, 1, '200', 1433509216),
6028(15, 2, '200', 1433509216),
6029(16, 3, '200', 1433509216),
6030(17, 4, '200', 1433509216),
6031(18, 5, '200', 1433509216),
6032(19, 2, '200', 1433509348),
6033(20, 2, '200', 1433509449),
6034(21, 1, '200', 1434986803),
6035(22, 2, '200', 1434986803),
6036(23, 3, '200', 1434986803),
6037(24, 4, '200', 1434986803),
6038(25, 5, '200', 1434986803),
6039(26, 2, '200', 1434986867),
6040(27, 1, '200', 1438267425),
6041(28, 2, '200', 1438267425),
6042(29, 3, '200', 1438267425),
6043(30, 4, '200', 1438267425),
6044(31, 5, '200', 1438267425),
6045(32, 2, '200', 1438267467),
6046(33, 1, '200', 1439465915),
6047(34, 2, '200', 1439465915),
6048(35, 3, '200', 1439465915),
6049(36, 4, '200', 1439465915),
6050(37, 5, '200', 1439465915),
6051(38, 2, '200', 1439467116),
6052(39, 1, '200', 1439467963),
6053(40, 2, '200', 1439467963),
6054(41, 3, '200', 1439467963),
6055(42, 4, '200', 1439467963),
6056(43, 5, '200', 1439467963),
6057(44, 2, '200', 1439468057),
6058(45, 1, '200', 1439706080),
6059(46, 2, '200', 1439706080),
6060(47, 3, '200', 1439706080),
6061(48, 4, '200', 1439706080),
6062(49, 5, '200', 1439706080),
6063(50, 2, '200', 1439706244),
6064(51, 2, '200', 1439706627),
6065(52, 2, '200', 1439708052),
6066(53, 1, '200', 1439719479),
6067(54, 2, '200', 1439719479),
6068(55, 3, '200', 1439719479),
6069(56, 4, '200', 1439719479),
6070(57, 5, '200', 1439719480),
6071(58, 1, '200', 1439722928),
6072(59, 2, '200', 1439722928),
6073(60, 3, '200', 1439722929),
6074(61, 4, '200', 1439722929),
6075(62, 5, '200', 1439722929);
6076
6077-- --------------------------------------------------------
6078
6079--
6080-- Table structure for table `divya_service`
6081--
6082
6083CREATE TABLE IF NOT EXISTS `divya_service` (
6084 `id` int(10) unsigned NOT NULL,
6085 `service_name` varchar(100) DEFAULT NULL,
6086 `service_description` varchar(255) DEFAULT NULL,
6087 `service_url` varchar(255) DEFAULT NULL,
6088 `service_api` varchar(255) DEFAULT NULL
6089) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Info on input sources i.e SMS, Email, Twitter';
6090
6091--
6092-- Dumping data for table `divya_service`
6093--
6094
6095INSERT INTO `divya_service` (`id`, `service_name`, `service_description`, `service_url`, `service_api`) VALUES
6096(1, 'SMS', 'Text messages from phones', NULL, NULL),
6097(2, 'Email', 'Email messages sent to your deployment', NULL, NULL),
6098(3, 'Twitter', 'Tweets tweets tweets', 'http://twitter.com', NULL);
6099
6100-- --------------------------------------------------------
6101
6102--
6103-- Table structure for table `divya_sessions`
6104--
6105
6106CREATE TABLE IF NOT EXISTS `divya_sessions` (
6107 `session_id` varchar(127) NOT NULL,
6108 `last_activity` int(10) unsigned NOT NULL,
6109 `data` text NOT NULL
6110) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores session information';
6111
6112--
6113-- Dumping data for table `divya_sessions`
6114--
6115
6116INSERT INTO `divya_sessions` (`session_id`, `last_activity`, `data`) VALUES
6117('oqf7od1l5ddq7eujl8t3i7psk2', 1439722931, 'fmUNDcv1QXRR/2ukYkq2lIDYVOKufMONCaEQud3CXURLm0Vd75PqQiXZntIJUgK2kuxHcjZVWDF4hv7pmTEhWAsuyJNysccGcv7F9/TOJUumzs53mhurPF45YY7K85lTj1V36DpAFdlzOeDl3Th6YFLzwfLS2lKej6aKr5NR2Vjpayh3R5GRb24E80OnzIrrt1f6ST9kc0RnY8RkuuqCSV7hNkK+HISbeN+lGqrI/+tzun7TCVDWWHYiNmcMKLSS7gMxaQJ6B7j/jLJ+MrLKlzN6RghkGsKOU7c5JBVaILoqNf6CPqJoHAv87dcTo92MrOxTQJpILgDsdbL7P7mWDTXZ3WR9Cmv+hx4wK1vfqWG8UygFjH9TCEEYhxD+pGBSzY1ZikXIBcMb4lfNwUZhAkTYfwn7Qkq5VvaVZ3hErKZFvCcHE+pdauptMPmrmLS4KeJNjOgC9mKC0rEOvLS1/WVWDzgIsMo4QSM3FxDPMN7+eLXK3OhABv6VCnEBzGrEiV6efNGT2tw47lD3yK9STptTHkncE+pjXraDUZvE1cauXoxJDA=='),
6118('jjdaj9pr9gd2asj5luor8mo9b4', 1439719480, 'KuDkog4casdSX8rIYW4KryJ8C0Uv4hMd49oWjQh194yo1Spp7FWr8/X7EsNjQdgfEaofpR8zaudjfxUEYJUmduoGCXmbDpMX6M6CR3tK1yV46PCIqX/aL+NkY1uPOMWX9Y9Sy3fr2N09SUr+wJwb6nc5kf19E7oEA+R3+SXcaur0FHrLGjppADf1ehDREi/hHVdp3QcZp+R9qfEFKp+yB0nuezLEEfl6gru5MWBsUSSSKjp27P6YopKY4U0NW3Q8VVjDshGtIGqftGSZXtvEp5YTgG8szQBcv3mCToFcCuAx1t29CPqYjHVyVxwx8z57WaJXLWxNGVT7icY23UQjxkgpP88g4HrWkt+r1h2RjFDx8nwBf+BWsBxvBcOCudXkt+avglleGJo4krq7aylyb2YJyM02CWBcEMSnf+ZaQoR2xArI5TIFX0cJh0Wyp5GUzYgF/O25aWwXtRJ7qLs8blQdCpWRm6d4TVyyQBxftcbGg+E5TfXR1Fr7H2qh+qexjVijXxY7Yy9IjCmB6569ZMKVJ9sbA0M42ondRfVptMVG0sUONw==');
6119
6120-- --------------------------------------------------------
6121
6122--
6123-- Table structure for table `divya_settings`
6124--
6125
6126CREATE TABLE IF NOT EXISTS `divya_settings` (
6127 `id` int(11) unsigned NOT NULL,
6128 `key` varchar(100) NOT NULL DEFAULT '' COMMENT 'Unique identifier for the configuration parameter',
6129 `value` text COMMENT 'Value for the settings parameter'
6130) ENGINE=MyISAM AUTO_INCREMENT=78 DEFAULT CHARSET=utf8;
6131
6132--
6133-- Dumping data for table `divya_settings`
6134--
6135
6136INSERT INTO `divya_settings` (`id`, `key`, `value`) VALUES
6137(1, 'site_name', 'Peace Corps Guyana'),
6138(2, 'site_tagline', 'Project by Divya Upadhyay'),
6139(3, 'site_banner_id', NULL),
6140(4, 'site_email', 'guyana@peacecorps.com'),
6141(5, 'site_key', NULL),
6142(6, 'site_language', 'en_US'),
6143(7, 'site_style', 'default'),
6144(8, 'site_timezone', NULL),
6145(9, 'site_contact_page', '1'),
6146(10, 'site_help_page', '1'),
6147(11, 'site_message', NULL),
6148(12, 'site_copyright_statement', NULL),
6149(13, 'site_submit_report_message', NULL),
6150(14, 'allow_reports', '1'),
6151(15, 'allow_comments', '1'),
6152(16, 'allow_feed', '1'),
6153(17, 'allow_stat_sharing', '1'),
6154(18, 'allow_clustering', '1'),
6155(19, 'cache_pages', '0'),
6156(20, 'cache_pages_lifetime', '1800'),
6157(21, 'private_deployment', '0'),
6158(22, 'default_map', 'osm_mapnik'),
6159(23, 'default_map_all', 'CC0000'),
6160(24, 'default_map_all_icon_id', NULL),
6161(25, 'api_google', 'ABQIAAAAjsEM5UsvCPCIHp80spK1kBQnONNwnjgPbDSioH0X5rmWMjc4axQCaMN2CIvMUCsXGLs-5pQ8xAx5cw'),
6162(26, 'api_live', 'Apumcka0uPOF2lKLorq8aeo4nuqfVVeNRqJjqOcLMJ9iMCTsnMsNd9_OvpA8gR0i'),
6163(27, 'api_akismet', ''),
6164(28, 'default_country', '115'),
6165(29, 'multi_country', '0'),
6166(30, 'default_city', 'nairobi'),
6167(31, 'default_lat', '-1.2873000707050097'),
6168(32, 'default_lon', '36.821451182008204'),
6169(33, 'default_zoom', '13'),
6170(34, 'items_per_page', '5'),
6171(35, 'items_per_page_admin', '20'),
6172(36, 'sms_provider', ''),
6173(37, 'sms_no1', NULL),
6174(38, 'sms_no2', NULL),
6175(39, 'sms_no3', NULL),
6176(40, 'google_analytics', NULL),
6177(41, 'twitter_hashtags', NULL),
6178(42, 'blocks', 'news_block|reports_block'),
6179(43, 'blocks_per_row', '2'),
6180(44, 'date_modify', '2008-08-25 10:25:18'),
6181(45, 'stat_id', '69361'),
6182(46, 'stat_key', '15bb1fc5012288394dd4a2e1b1c832'),
6183(47, 'email_username', NULL),
6184(48, 'email_password', NULL),
6185(49, 'email_port', NULL),
6186(50, 'email_host', NULL),
6187(51, 'email_servertype', NULL),
6188(52, 'email_ssl', NULL),
6189(53, 'ftp_server', NULL),
6190(54, 'ftp_user_name', NULL),
6191(55, 'alerts_email', NULL),
6192(57, 'facebook_appid', NULL),
6193(58, 'facebook_appsecret', NULL),
6194(59, 'db_version', '117'),
6195(60, 'ushahidi_version', '2.7.3'),
6196(61, 'allow_alerts', '1'),
6197(62, 'require_email_confirmation', '0'),
6198(63, 'manually_approve_users', '0'),
6199(64, 'enable_timeline', '0'),
6200(65, 'feed_geolocation_user', ''),
6201(66, 'allow_feed_category', '0'),
6202(67, 'dashboard_redirect', '1'),
6203(68, 'enable_report_notifications', '0'),
6204(69, 'enable_media_filters', '1'),
6205(70, 'enable_chronological_filter', '1'),
6206(71, 'enable_category_filters', '1'),
6207(72, 'enable_category_filters_showhide', '1'),
6208(73, 'show_reporting_options', '1'),
6209(74, 'show_submit_report_tab', '1'),
6210(75, 'enable_filter_search', '0'),
6211(76, 'forgot_password_secret', 'Ku[c0,AsIUNpXBwR*`t*:2Z*Hg?2[jfK`Zvazl&@uq4n@B.zft$n%X+XP+ljYG}`'),
6212(77, 'scheduler_lock', '0');
6213
6214-- --------------------------------------------------------
6215
6216--
6217-- Table structure for table `divya_user_tokens`
6218--
6219
6220CREATE TABLE IF NOT EXISTS `divya_user_tokens` (
6221 `id` int(11) unsigned NOT NULL,
6222 `user_id` int(11) unsigned NOT NULL,
6223 `user_agent` varchar(40) NOT NULL,
6224 `token` varchar(64) NOT NULL,
6225 `created` int(10) unsigned NOT NULL,
6226 `expires` int(10) unsigned NOT NULL
6227) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Stores browser tokens assigned to users';
6228
6229--
6230-- Dumping data for table `divya_user_tokens`
6231--
6232
6233INSERT INTO `divya_user_tokens` (`id`, `user_id`, `user_agent`, `token`, `created`, `expires`) VALUES
6234(1, 1, '855d7b0dc6486ca89033c4e8c5cebd42b5cf027a', 'qtTMmO2IPS2ON0a7GfdLz4ccvyfnK5o8', 1433505135, 1434714735),
6235(2, 2, '81695bebd98104d5fbc4db1f011a6b2704476bce', 'Oq5lpTHrD7eVZdC9kG98b6BMjoGHbaht', 1439467026, 1440676626);
6236
6237-- --------------------------------------------------------
6238
6239--
6240-- Table structure for table `divya_users`
6241--
6242
6243CREATE TABLE IF NOT EXISTS `divya_users` (
6244 `id` int(11) unsigned NOT NULL,
6245 `riverid` varchar(128) NOT NULL,
6246 `name` varchar(200) DEFAULT NULL,
6247 `email` varchar(127) NOT NULL,
6248 `username` varchar(100) NOT NULL DEFAULT '',
6249 `password` char(50) NOT NULL,
6250 `logins` int(10) unsigned NOT NULL DEFAULT '0',
6251 `last_login` int(10) unsigned DEFAULT NULL,
6252 `notify` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Flag incase admin opts in for email notifications',
6253 `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
6254 `color` varchar(6) NOT NULL DEFAULT 'FF0000',
6255 `code` varchar(30) DEFAULT NULL,
6256 `confirmed` tinyint(1) NOT NULL DEFAULT '0',
6257 `public_profile` tinyint(1) NOT NULL DEFAULT '1',
6258 `approved` tinyint(1) NOT NULL DEFAULT '1',
6259 `needinfo` tinyint(1) NOT NULL DEFAULT '0',
6260 `report_notifications` tinyint(4) DEFAULT '0',
6261 `last_reports_view` datetime DEFAULT NULL
6262) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Stores registered users’ information';
6263
6264--
6265-- Dumping data for table `divya_users`
6266--
6267
6268INSERT INTO `divya_users` (`id`, `riverid`, `name`, `email`, `username`, `password`, `logins`, `last_login`, `notify`, `updated`, `color`, `code`, `confirmed`, `public_profile`, `approved`, `needinfo`, `report_notifications`, `last_reports_view`) VALUES
6269(1, '', 'Administrator', 'divyaupadhyay42@gmail.com', 'admin', '7f1ef9c4347d08e5b78e0e13374713d7d482cce3f74927531d', 1, 1433505135, 0, '2015-08-16 06:23:57', 'FF0000', NULL, 1, 0, 1, 0, 0, '2015-06-05 12:51:55'),
6270(2, '', 'Rohit Kashyap', 'rkgudboy@gmail.com', '1801756028', '49d71cba3bf4aae1965180b1b89e178e6c8b255e11ec671350', 2, 1439706076, 0, '2015-08-16 06:30:29', 'FF0000', NULL, 0, 1, 1, 0, 0, '2015-08-16 06:30:29');
6271
6272-- --------------------------------------------------------
6273
6274--
6275-- Table structure for table `divya_verified`
6276--
6277
6278CREATE TABLE IF NOT EXISTS `divya_verified` (
6279 `id` bigint(20) unsigned NOT NULL,
6280 `incident_id` bigint(20) unsigned DEFAULT NULL,
6281 `user_id` int(11) DEFAULT NULL,
6282 `verified_date` datetime DEFAULT NULL,
6283 `verified_status` tinyint(4) NOT NULL DEFAULT '0'
6284) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stores all verified reports';
6285
6286--
6287-- Indexes for dumped tables
6288--
6289
6290--
6291-- Indexes for table `divya_actions`
6292--
6293ALTER TABLE `divya_actions`
6294 ADD PRIMARY KEY (`action_id`);
6295
6296--
6297-- Indexes for table `divya_actions_log`
6298--
6299ALTER TABLE `divya_actions_log`
6300 ADD PRIMARY KEY (`id`),
6301 ADD KEY `action_id` (`action_id`);
6302
6303--
6304-- Indexes for table `divya_alert`
6305--
6306ALTER TABLE `divya_alert`
6307 ADD PRIMARY KEY (`id`),
6308 ADD UNIQUE KEY `uniq_alert_code` (`alert_code`),
6309 ADD KEY `user_id` (`user_id`);
6310
6311--
6312-- Indexes for table `divya_alert_category`
6313--
6314ALTER TABLE `divya_alert_category`
6315 ADD PRIMARY KEY (`id`),
6316 ADD KEY `alert_id` (`alert_id`),
6317 ADD KEY `category_id` (`category_id`);
6318
6319--
6320-- Indexes for table `divya_alert_sent`
6321--
6322ALTER TABLE `divya_alert_sent`
6323 ADD PRIMARY KEY (`id`),
6324 ADD KEY `incident_id` (`incident_id`),
6325 ADD KEY `alert_id` (`alert_id`);
6326
6327--
6328-- Indexes for table `divya_api_banned`
6329--
6330ALTER TABLE `divya_api_banned`
6331 ADD PRIMARY KEY (`id`);
6332
6333--
6334-- Indexes for table `divya_api_log`
6335--
6336ALTER TABLE `divya_api_log`
6337 ADD PRIMARY KEY (`id`);
6338
6339--
6340-- Indexes for table `divya_api_settings`
6341--
6342ALTER TABLE `divya_api_settings`
6343 ADD PRIMARY KEY (`id`);
6344
6345--
6346-- Indexes for table `divya_badge`
6347--
6348ALTER TABLE `divya_badge`
6349 ADD PRIMARY KEY (`id`);
6350
6351--
6352-- Indexes for table `divya_badge_users`
6353--
6354ALTER TABLE `divya_badge_users`
6355 ADD PRIMARY KEY (`user_id`,`badge_id`);
6356
6357--
6358-- Indexes for table `divya_category`
6359--
6360ALTER TABLE `divya_category`
6361 ADD PRIMARY KEY (`id`),
6362 ADD KEY `category_visible` (`category_visible`),
6363 ADD KEY `parent_id` (`parent_id`);
6364
6365--
6366-- Indexes for table `divya_category_lang`
6367--
6368ALTER TABLE `divya_category_lang`
6369 ADD PRIMARY KEY (`id`),
6370 ADD KEY `category_id` (`category_id`);
6371
6372--
6373-- Indexes for table `divya_city`
6374--
6375ALTER TABLE `divya_city`
6376 ADD PRIMARY KEY (`id`),
6377 ADD KEY `country_id` (`country_id`);
6378
6379--
6380-- Indexes for table `divya_cluster`
6381--
6382ALTER TABLE `divya_cluster`
6383 ADD PRIMARY KEY (`id`),
6384 ADD KEY `location_id` (`location_id`),
6385 ADD KEY `incident_id` (`incident_id`),
6386 ADD KEY `category_id` (`category_id`);
6387
6388--
6389-- Indexes for table `divya_comment`
6390--
6391ALTER TABLE `divya_comment`
6392 ADD PRIMARY KEY (`id`),
6393 ADD KEY `incident_id` (`incident_id`),
6394 ADD KEY `user_id` (`user_id`);
6395
6396--
6397-- Indexes for table `divya_country`
6398--
6399ALTER TABLE `divya_country`
6400 ADD PRIMARY KEY (`id`);
6401
6402--
6403-- Indexes for table `divya_externalapp`
6404--
6405ALTER TABLE `divya_externalapp`
6406 ADD PRIMARY KEY (`id`);
6407
6408--
6409-- Indexes for table `divya_feed`
6410--
6411ALTER TABLE `divya_feed`
6412 ADD PRIMARY KEY (`id`);
6413
6414--
6415-- Indexes for table `divya_feed_item`
6416--
6417ALTER TABLE `divya_feed_item`
6418 ADD PRIMARY KEY (`id`),
6419 ADD KEY `feed_id` (`feed_id`),
6420 ADD KEY `incident_id` (`incident_id`),
6421 ADD KEY `location_id` (`location_id`);
6422
6423--
6424-- Indexes for table `divya_feed_item_category`
6425--
6426ALTER TABLE `divya_feed_item_category`
6427 ADD PRIMARY KEY (`id`),
6428 ADD UNIQUE KEY `feed_item_category_ids` (`feed_item_id`,`category_id`),
6429 ADD KEY `feed_item_id` (`feed_item_id`),
6430 ADD KEY `category_id` (`category_id`);
6431
6432--
6433-- Indexes for table `divya_form`
6434--
6435ALTER TABLE `divya_form`
6436 ADD PRIMARY KEY (`id`),
6437 ADD UNIQUE KEY `form_title` (`form_title`);
6438
6439--
6440-- Indexes for table `divya_form_field`
6441--
6442ALTER TABLE `divya_form_field`
6443 ADD PRIMARY KEY (`id`),
6444 ADD UNIQUE KEY `field_name` (`field_name`,`form_id`),
6445 ADD KEY `fk_form_id` (`form_id`);
6446
6447--
6448-- Indexes for table `divya_form_field_option`
6449--
6450ALTER TABLE `divya_form_field_option`
6451 ADD PRIMARY KEY (`id`),
6452 ADD KEY `form_field_id` (`form_field_id`);
6453
6454--
6455-- Indexes for table `divya_form_response`
6456--
6457ALTER TABLE `divya_form_response`
6458 ADD PRIMARY KEY (`id`),
6459 ADD KEY `fk_form_field_id` (`form_field_id`),
6460 ADD KEY `incident_id` (`incident_id`);
6461
6462--
6463-- Indexes for table `divya_geometry`
6464--
6465ALTER TABLE `divya_geometry`
6466 ADD PRIMARY KEY (`id`),
6467 ADD SPATIAL KEY `geometry` (`geometry`),
6468 ADD KEY `incident_id` (`incident_id`);
6469
6470--
6471-- Indexes for table `divya_incident`
6472--
6473ALTER TABLE `divya_incident`
6474 ADD PRIMARY KEY (`id`),
6475 ADD KEY `location_id` (`location_id`),
6476 ADD KEY `incident_active` (`incident_active`),
6477 ADD KEY `incident_date` (`incident_date`),
6478 ADD KEY `form_id` (`form_id`),
6479 ADD KEY `user_id` (`user_id`),
6480 ADD KEY `incident_mode` (`incident_mode`),
6481 ADD KEY `incident_verified` (`incident_verified`);
6482
6483--
6484-- Indexes for table `divya_incident_category`
6485--
6486ALTER TABLE `divya_incident_category`
6487 ADD PRIMARY KEY (`id`),
6488 ADD UNIQUE KEY `incident_category_ids` (`incident_id`,`category_id`),
6489 ADD KEY `incident_id` (`incident_id`),
6490 ADD KEY `category_id` (`category_id`);
6491
6492--
6493-- Indexes for table `divya_incident_lang`
6494--
6495ALTER TABLE `divya_incident_lang`
6496 ADD PRIMARY KEY (`id`),
6497 ADD KEY `incident_id` (`incident_id`);
6498
6499--
6500-- Indexes for table `divya_incident_person`
6501--
6502ALTER TABLE `divya_incident_person`
6503 ADD PRIMARY KEY (`id`),
6504 ADD KEY `incident_id` (`incident_id`);
6505
6506--
6507-- Indexes for table `divya_layer`
6508--
6509ALTER TABLE `divya_layer`
6510 ADD PRIMARY KEY (`id`);
6511
6512--
6513-- Indexes for table `divya_level`
6514--
6515ALTER TABLE `divya_level`
6516 ADD PRIMARY KEY (`id`);
6517
6518--
6519-- Indexes for table `divya_location`
6520--
6521ALTER TABLE `divya_location`
6522 ADD PRIMARY KEY (`id`),
6523 ADD KEY `country_id` (`country_id`),
6524 ADD KEY `latitude` (`latitude`),
6525 ADD KEY `longitude` (`longitude`);
6526
6527--
6528-- Indexes for table `divya_maintenance`
6529--
6530ALTER TABLE `divya_maintenance`
6531 ADD PRIMARY KEY (`allowed_ip`);
6532
6533--
6534-- Indexes for table `divya_media`
6535--
6536ALTER TABLE `divya_media`
6537 ADD PRIMARY KEY (`id`),
6538 ADD KEY `incident_id` (`incident_id`),
6539 ADD KEY `location_id` (`location_id`),
6540 ADD KEY `badge_id` (`badge_id`),
6541 ADD KEY `message_id` (`message_id`);
6542
6543--
6544-- Indexes for table `divya_message`
6545--
6546ALTER TABLE `divya_message`
6547 ADD PRIMARY KEY (`id`),
6548 ADD KEY `user_id` (`user_id`),
6549 ADD KEY `incident_id` (`incident_id`),
6550 ADD KEY `reporter_id` (`reporter_id`);
6551
6552--
6553-- Indexes for table `divya_openid`
6554--
6555ALTER TABLE `divya_openid`
6556 ADD PRIMARY KEY (`id`),
6557 ADD KEY `openid` (`openid`),
6558 ADD KEY `user_id` (`user_id`);
6559
6560--
6561-- Indexes for table `divya_page`
6562--
6563ALTER TABLE `divya_page`
6564 ADD PRIMARY KEY (`id`);
6565
6566--
6567-- Indexes for table `divya_permissions`
6568--
6569ALTER TABLE `divya_permissions`
6570 ADD PRIMARY KEY (`id`),
6571 ADD UNIQUE KEY `name_UNIQUE` (`name`);
6572
6573--
6574-- Indexes for table `divya_permissions_roles`
6575--
6576ALTER TABLE `divya_permissions_roles`
6577 ADD PRIMARY KEY (`role_id`,`permission_id`);
6578
6579--
6580-- Indexes for table `divya_plugin`
6581--
6582ALTER TABLE `divya_plugin`
6583 ADD PRIMARY KEY (`id`),
6584 ADD UNIQUE KEY `plugin_name` (`plugin_name`);
6585
6586--
6587-- Indexes for table `divya_private_message`
6588--
6589ALTER TABLE `divya_private_message`
6590 ADD PRIMARY KEY (`id`),
6591 ADD KEY `user_id` (`user_id`);
6592
6593--
6594-- Indexes for table `divya_rating`
6595--
6596ALTER TABLE `divya_rating`
6597 ADD PRIMARY KEY (`id`),
6598 ADD KEY `user_id` (`user_id`),
6599 ADD KEY `incident_id` (`incident_id`),
6600 ADD KEY `comment_id` (`comment_id`);
6601
6602--
6603-- Indexes for table `divya_reporter`
6604--
6605ALTER TABLE `divya_reporter`
6606 ADD PRIMARY KEY (`id`),
6607 ADD KEY `user_id` (`user_id`),
6608 ADD KEY `location_id` (`location_id`),
6609 ADD KEY `service_id` (`service_id`),
6610 ADD KEY `level_id` (`level_id`);
6611
6612--
6613-- Indexes for table `divya_roles`
6614--
6615ALTER TABLE `divya_roles`
6616 ADD PRIMARY KEY (`id`),
6617 ADD UNIQUE KEY `uniq_name` (`name`);
6618
6619--
6620-- Indexes for table `divya_roles_users`
6621--
6622ALTER TABLE `divya_roles_users`
6623 ADD PRIMARY KEY (`user_id`,`role_id`),
6624 ADD KEY `fk_role_id` (`role_id`);
6625
6626--
6627-- Indexes for table `divya_scheduler`
6628--
6629ALTER TABLE `divya_scheduler`
6630 ADD PRIMARY KEY (`id`);
6631
6632--
6633-- Indexes for table `divya_scheduler_log`
6634--
6635ALTER TABLE `divya_scheduler_log`
6636 ADD PRIMARY KEY (`id`),
6637 ADD KEY `scheduler_id` (`scheduler_id`);
6638
6639--
6640-- Indexes for table `divya_service`
6641--
6642ALTER TABLE `divya_service`
6643 ADD PRIMARY KEY (`id`);
6644
6645--
6646-- Indexes for table `divya_sessions`
6647--
6648ALTER TABLE `divya_sessions`
6649 ADD PRIMARY KEY (`session_id`);
6650
6651--
6652-- Indexes for table `divya_settings`
6653--
6654ALTER TABLE `divya_settings`
6655 ADD PRIMARY KEY (`id`),
6656 ADD UNIQUE KEY `uq_settings_key` (`key`);
6657
6658--
6659-- Indexes for table `divya_user_tokens`
6660--
6661ALTER TABLE `divya_user_tokens`
6662 ADD PRIMARY KEY (`id`),
6663 ADD UNIQUE KEY `uniq_token` (`token`),
6664 ADD KEY `fk_user_id` (`user_id`);
6665
6666--
6667-- Indexes for table `divya_users`
6668--
6669ALTER TABLE `divya_users`
6670 ADD PRIMARY KEY (`id`),
6671 ADD UNIQUE KEY `uniq_username` (`username`),
6672 ADD UNIQUE KEY `uniq_email` (`email`);
6673
6674--
6675-- Indexes for table `divya_verified`
6676--
6677ALTER TABLE `divya_verified`
6678 ADD PRIMARY KEY (`id`),
6679 ADD KEY `incident_id` (`incident_id`);
6680
6681--
6682-- AUTO_INCREMENT for dumped tables
6683--
6684
6685--
6686-- AUTO_INCREMENT for table `divya_actions`
6687--
6688ALTER TABLE `divya_actions`
6689 MODIFY `action_id` int(11) NOT NULL AUTO_INCREMENT;
6690--
6691-- AUTO_INCREMENT for table `divya_actions_log`
6692--
6693ALTER TABLE `divya_actions_log`
6694 MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
6695--
6696-- AUTO_INCREMENT for table `divya_alert`
6697--
6698ALTER TABLE `divya_alert`
6699 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
6700--
6701-- AUTO_INCREMENT for table `divya_alert_category`
6702--
6703ALTER TABLE `divya_alert_category`
6704 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
6705--
6706-- AUTO_INCREMENT for table `divya_alert_sent`
6707--
6708ALTER TABLE `divya_alert_sent`
6709 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
6710--
6711-- AUTO_INCREMENT for table `divya_api_banned`
6712--
6713ALTER TABLE `divya_api_banned`
6714 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
6715--
6716-- AUTO_INCREMENT for table `divya_api_log`
6717--
6718ALTER TABLE `divya_api_log`
6719 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19;
6720--
6721-- AUTO_INCREMENT for table `divya_api_settings`
6722--
6723ALTER TABLE `divya_api_settings`
6724 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
6725--
6726-- AUTO_INCREMENT for table `divya_badge`
6727--
6728ALTER TABLE `divya_badge`
6729 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
6730--
6731-- AUTO_INCREMENT for table `divya_category`
6732--
6733ALTER TABLE `divya_category`
6734 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
6735--
6736-- AUTO_INCREMENT for table `divya_category_lang`
6737--
6738ALTER TABLE `divya_category_lang`
6739 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
6740--
6741-- AUTO_INCREMENT for table `divya_city`
6742--
6743ALTER TABLE `divya_city`
6744 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
6745--
6746-- AUTO_INCREMENT for table `divya_comment`
6747--
6748ALTER TABLE `divya_comment`
6749 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
6750--
6751-- AUTO_INCREMENT for table `divya_country`
6752--
6753ALTER TABLE `divya_country`
6754 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=250;
6755--
6756-- AUTO_INCREMENT for table `divya_externalapp`
6757--
6758ALTER TABLE `divya_externalapp`
6759 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
6760--
6761-- AUTO_INCREMENT for table `divya_feed`
6762--
6763ALTER TABLE `divya_feed`
6764 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
6765--
6766-- AUTO_INCREMENT for table `divya_feed_item`
6767--
6768ALTER TABLE `divya_feed_item`
6769 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
6770--
6771-- AUTO_INCREMENT for table `divya_feed_item_category`
6772--
6773ALTER TABLE `divya_feed_item_category`
6774 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
6775--
6776-- AUTO_INCREMENT for table `divya_form`
6777--
6778ALTER TABLE `divya_form`
6779 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
6780--
6781-- AUTO_INCREMENT for table `divya_form_field`
6782--
6783ALTER TABLE `divya_form_field`
6784 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
6785--
6786-- AUTO_INCREMENT for table `divya_form_field_option`
6787--
6788ALTER TABLE `divya_form_field_option`
6789 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
6790--
6791-- AUTO_INCREMENT for table `divya_form_response`
6792--
6793ALTER TABLE `divya_form_response`
6794 MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
6795--
6796-- AUTO_INCREMENT for table `divya_geometry`
6797--
6798ALTER TABLE `divya_geometry`
6799 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
6800--
6801-- AUTO_INCREMENT for table `divya_incident`
6802--
6803ALTER TABLE `divya_incident`
6804 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
6805--
6806-- AUTO_INCREMENT for table `divya_incident_category`
6807--
6808ALTER TABLE `divya_incident_category`
6809 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
6810--
6811-- AUTO_INCREMENT for table `divya_incident_lang`
6812--
6813ALTER TABLE `divya_incident_lang`
6814 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
6815--
6816-- AUTO_INCREMENT for table `divya_incident_person`
6817--
6818ALTER TABLE `divya_incident_person`
6819 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
6820--
6821-- AUTO_INCREMENT for table `divya_layer`
6822--
6823ALTER TABLE `divya_layer`
6824 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
6825--
6826-- AUTO_INCREMENT for table `divya_level`
6827--
6828ALTER TABLE `divya_level`
6829 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
6830--
6831-- AUTO_INCREMENT for table `divya_location`
6832--
6833ALTER TABLE `divya_location`
6834 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
6835--
6836-- AUTO_INCREMENT for table `divya_media`
6837--
6838ALTER TABLE `divya_media`
6839 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
6840--
6841-- AUTO_INCREMENT for table `divya_message`
6842--
6843ALTER TABLE `divya_message`
6844 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
6845--
6846-- AUTO_INCREMENT for table `divya_openid`
6847--
6848ALTER TABLE `divya_openid`
6849 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
6850--
6851-- AUTO_INCREMENT for table `divya_page`
6852--
6853ALTER TABLE `divya_page`
6854 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
6855--
6856-- AUTO_INCREMENT for table `divya_permissions`
6857--
6858ALTER TABLE `divya_permissions`
6859 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=21;
6860--
6861-- AUTO_INCREMENT for table `divya_plugin`
6862--
6863ALTER TABLE `divya_plugin`
6864 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
6865--
6866-- AUTO_INCREMENT for table `divya_private_message`
6867--
6868ALTER TABLE `divya_private_message`
6869 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
6870--
6871-- AUTO_INCREMENT for table `divya_rating`
6872--
6873ALTER TABLE `divya_rating`
6874 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
6875--
6876-- AUTO_INCREMENT for table `divya_reporter`
6877--
6878ALTER TABLE `divya_reporter`
6879 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
6880--
6881-- AUTO_INCREMENT for table `divya_roles`
6882--
6883ALTER TABLE `divya_roles`
6884 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
6885--
6886-- AUTO_INCREMENT for table `divya_scheduler`
6887--
6888ALTER TABLE `divya_scheduler`
6889 MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
6890--
6891-- AUTO_INCREMENT for table `divya_scheduler_log`
6892--
6893ALTER TABLE `divya_scheduler_log`
6894 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=63;
6895--
6896-- AUTO_INCREMENT for table `divya_service`
6897--
6898ALTER TABLE `divya_service`
6899 MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
6900--
6901-- AUTO_INCREMENT for table `divya_settings`
6902--
6903ALTER TABLE `divya_settings`
6904 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=78;
6905--
6906-- AUTO_INCREMENT for table `divya_user_tokens`
6907--
6908ALTER TABLE `divya_user_tokens`
6909 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
6910--
6911-- AUTO_INCREMENT for table `divya_users`
6912--
6913ALTER TABLE `divya_users`
6914 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
6915--
6916-- AUTO_INCREMENT for table `divya_verified`
6917--
6918ALTER TABLE `divya_verified`
6919 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;--
6920-- Database: `divya_crownmap`
6921--
6922--
6923-- Database: `phpmyadmin`
6924--
6925
6926-- --------------------------------------------------------
6927
6928--
6929-- Table structure for table `pma__bookmark`
6930--
6931
6932CREATE TABLE IF NOT EXISTS `pma__bookmark` (
6933 `id` int(11) NOT NULL,
6934 `dbase` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
6935 `user` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
6936 `label` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
6937 `query` text COLLATE utf8_bin NOT NULL
6938) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Bookmarks';
6939
6940-- --------------------------------------------------------
6941
6942--
6943-- Table structure for table `pma__column_info`
6944--
6945
6946CREATE TABLE IF NOT EXISTS `pma__column_info` (
6947 `id` int(5) unsigned NOT NULL,
6948 `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
6949 `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
6950 `column_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
6951 `comment` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
6952 `mimetype` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
6953 `transformation` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
6954 `transformation_options` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT ''
6955) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column information for phpMyAdmin';
6956
6957-- --------------------------------------------------------
6958
6959--
6960-- Table structure for table `pma__designer_coords`
6961--
6962
6963CREATE TABLE IF NOT EXISTS `pma__designer_coords` (
6964 `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
6965 `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
6966 `x` int(11) DEFAULT NULL,
6967 `y` int(11) DEFAULT NULL,
6968 `v` tinyint(4) DEFAULT NULL,
6969 `h` tinyint(4) DEFAULT NULL
6970) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table coordinates for Designer';
6971
6972-- --------------------------------------------------------
6973
6974--
6975-- Table structure for table `pma__history`
6976--
6977
6978CREATE TABLE IF NOT EXISTS `pma__history` (
6979 `id` bigint(20) unsigned NOT NULL,
6980 `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
6981 `db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
6982 `table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
6983 `timevalue` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
6984 `sqlquery` text COLLATE utf8_bin NOT NULL
6985) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='SQL history for phpMyAdmin';
6986
6987-- --------------------------------------------------------
6988
6989--
6990-- Table structure for table `pma__pdf_pages`
6991--
6992
6993CREATE TABLE IF NOT EXISTS `pma__pdf_pages` (
6994 `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
6995 `page_nr` int(10) unsigned NOT NULL,
6996 `page_descr` varchar(50) CHARACTER SET utf8 NOT NULL DEFAULT ''
6997) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='PDF relation pages for phpMyAdmin';
6998
6999-- --------------------------------------------------------
7000
7001--
7002-- Table structure for table `pma__recent`
7003--
7004
7005CREATE TABLE IF NOT EXISTS `pma__recent` (
7006 `username` varchar(64) COLLATE utf8_bin NOT NULL,
7007 `tables` text COLLATE utf8_bin NOT NULL
7008) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Recently accessed tables';
7009
7010--
7011-- Dumping data for table `pma__recent`
7012--
7013
7014INSERT INTO `pma__recent` (`username`, `tables`) VALUES
7015('root', '[{"db":"crowd","table":"volunteer"},{"db":"crowd","table":"rating"},{"db":"crowd","table":"form_response"},{"db":"crowd","table":"form"},{"db":"crowd","table":"reporter"},{"db":"crowd","table":"roles_users"},{"db":"crowd","table":"users"},{"db":"crowd","table":"actions"},{"db":"crowd","table":"alert_sent"},{"db":"crowd","table":"actions_log"}]');
7016
7017-- --------------------------------------------------------
7018
7019--
7020-- Table structure for table `pma__relation`
7021--
7022
7023CREATE TABLE IF NOT EXISTS `pma__relation` (
7024 `master_db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
7025 `master_table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
7026 `master_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
7027 `foreign_db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
7028 `foreign_table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
7029 `foreign_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT ''
7030) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Relation table';
7031
7032-- --------------------------------------------------------
7033
7034--
7035-- Table structure for table `pma__table_coords`
7036--
7037
7038CREATE TABLE IF NOT EXISTS `pma__table_coords` (
7039 `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
7040 `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
7041 `pdf_page_number` int(11) NOT NULL DEFAULT '0',
7042 `x` float unsigned NOT NULL DEFAULT '0',
7043 `y` float unsigned NOT NULL DEFAULT '0'
7044) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table coordinates for phpMyAdmin PDF output';
7045
7046-- --------------------------------------------------------
7047
7048--
7049-- Table structure for table `pma__table_info`
7050--
7051
7052CREATE TABLE IF NOT EXISTS `pma__table_info` (
7053 `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
7054 `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
7055 `display_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT ''
7056) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table information for phpMyAdmin';
7057
7058-- --------------------------------------------------------
7059
7060--
7061-- Table structure for table `pma__table_uiprefs`
7062--
7063
7064CREATE TABLE IF NOT EXISTS `pma__table_uiprefs` (
7065 `username` varchar(64) COLLATE utf8_bin NOT NULL,
7066 `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
7067 `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
7068 `prefs` text COLLATE utf8_bin NOT NULL,
7069 `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
7070) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Tables'' UI preferences';
7071
7072-- --------------------------------------------------------
7073
7074--
7075-- Table structure for table `pma__tracking`
7076--
7077
7078CREATE TABLE IF NOT EXISTS `pma__tracking` (
7079 `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
7080 `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
7081 `version` int(10) unsigned NOT NULL,
7082 `date_created` datetime NOT NULL,
7083 `date_updated` datetime NOT NULL,
7084 `schema_snapshot` text COLLATE utf8_bin NOT NULL,
7085 `schema_sql` text COLLATE utf8_bin,
7086 `data_sql` longtext COLLATE utf8_bin,
7087 `tracking` set('UPDATE','REPLACE','INSERT','DELETE','TRUNCATE','CREATE DATABASE','ALTER DATABASE','DROP DATABASE','CREATE TABLE','ALTER TABLE','RENAME TABLE','DROP TABLE','CREATE INDEX','DROP INDEX','CREATE VIEW','ALTER VIEW','DROP VIEW') COLLATE utf8_bin DEFAULT NULL,
7088 `tracking_active` int(1) unsigned NOT NULL DEFAULT '1'
7089) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT COMMENT='Database changes tracking for phpMyAdmin';
7090
7091-- --------------------------------------------------------
7092
7093--
7094-- Table structure for table `pma__userconfig`
7095--
7096
7097CREATE TABLE IF NOT EXISTS `pma__userconfig` (
7098 `username` varchar(64) COLLATE utf8_bin NOT NULL,
7099 `timevalue` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
7100 `config_data` text COLLATE utf8_bin NOT NULL
7101) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User preferences storage for phpMyAdmin';
7102
7103--
7104-- Dumping data for table `pma__userconfig`
7105--
7106
7107INSERT INTO `pma__userconfig` (`username`, `timevalue`, `config_data`) VALUES
7108('root', '2015-06-05 08:15:43', '{"collation_connection":"utf8mb4_unicode_ci"}'),
7109('rqq', '2015-09-14 15:58:59', '{"collation_connection":"utf8mb4_unicode_ci"}');
7110
7111--
7112-- Indexes for dumped tables
7113--
7114
7115--
7116-- Indexes for table `pma__bookmark`
7117--
7118ALTER TABLE `pma__bookmark`
7119 ADD PRIMARY KEY (`id`);
7120
7121--
7122-- Indexes for table `pma__column_info`
7123--
7124ALTER TABLE `pma__column_info`
7125 ADD PRIMARY KEY (`id`),
7126 ADD UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`);
7127
7128--
7129-- Indexes for table `pma__designer_coords`
7130--
7131ALTER TABLE `pma__designer_coords`
7132 ADD PRIMARY KEY (`db_name`,`table_name`);
7133
7134--
7135-- Indexes for table `pma__history`
7136--
7137ALTER TABLE `pma__history`
7138 ADD PRIMARY KEY (`id`),
7139 ADD KEY `username` (`username`,`db`,`table`,`timevalue`);
7140
7141--
7142-- Indexes for table `pma__pdf_pages`
7143--
7144ALTER TABLE `pma__pdf_pages`
7145 ADD PRIMARY KEY (`page_nr`),
7146 ADD KEY `db_name` (`db_name`);
7147
7148--
7149-- Indexes for table `pma__recent`
7150--
7151ALTER TABLE `pma__recent`
7152 ADD PRIMARY KEY (`username`);
7153
7154--
7155-- Indexes for table `pma__relation`
7156--
7157ALTER TABLE `pma__relation`
7158 ADD PRIMARY KEY (`master_db`,`master_table`,`master_field`),
7159 ADD KEY `foreign_field` (`foreign_db`,`foreign_table`);
7160
7161--
7162-- Indexes for table `pma__table_coords`
7163--
7164ALTER TABLE `pma__table_coords`
7165 ADD PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`);
7166
7167--
7168-- Indexes for table `pma__table_info`
7169--
7170ALTER TABLE `pma__table_info`
7171 ADD PRIMARY KEY (`db_name`,`table_name`);
7172
7173--
7174-- Indexes for table `pma__table_uiprefs`
7175--
7176ALTER TABLE `pma__table_uiprefs`
7177 ADD PRIMARY KEY (`username`,`db_name`,`table_name`);
7178
7179--
7180-- Indexes for table `pma__tracking`
7181--
7182ALTER TABLE `pma__tracking`
7183 ADD PRIMARY KEY (`db_name`,`table_name`,`version`);
7184
7185--
7186-- Indexes for table `pma__userconfig`
7187--
7188ALTER TABLE `pma__userconfig`
7189 ADD PRIMARY KEY (`username`);
7190
7191--
7192-- AUTO_INCREMENT for dumped tables
7193--
7194
7195--
7196-- AUTO_INCREMENT for table `pma__bookmark`
7197--
7198ALTER TABLE `pma__bookmark`
7199 MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
7200--
7201-- AUTO_INCREMENT for table `pma__column_info`
7202--
7203ALTER TABLE `pma__column_info`
7204 MODIFY `id` int(5) unsigned NOT NULL AUTO_INCREMENT;
7205--
7206-- AUTO_INCREMENT for table `pma__history`
7207--
7208ALTER TABLE `pma__history`
7209 MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT;
7210--
7211-- AUTO_INCREMENT for table `pma__pdf_pages`
7212--
7213ALTER TABLE `pma__pdf_pages`
7214 MODIFY `page_nr` int(10) unsigned NOT NULL AUTO_INCREMENT;--
7215-- Database: `test`
7216--
7217
7218DELIMITER $$
7219--
7220-- Procedures
7221--
7222CREATE DEFINER=`root`@`localhost` PROCEDURE `test_multi_sets`()
7223 DETERMINISTIC
7224begin
7225 select user() as first_col;
7226 select user() as first_col, now() as second_col;
7227 select user() as first_col, now() as second_col, now() as third_col;
7228 end$$
7229
7230DELIMITER ;
7231
7232/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
7233/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
7234/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;