Assembla home | Assembla project page
 

root/trunk/webrocket.sql

Revision 97, 38.2 kB (checked in by AD7six, 1 year ago)

Modifying table structure, and prepopulating lft/rght fields so the tree is valid (even though the values will now 'move' menu items)

Line 
1 -- phpMyAdmin SQL Dump
2 -- version 2.9.1.1-Debian-2ubuntu1
3 -- http://www.phpmyadmin.net
4 --
5 -- Host: localhost
6 -- Generation Time: Apr 29, 2007 at 03:25 PM
7 -- Server version: 5.0.38
8 -- PHP Version: 5.2.1
9 --
10 -- Database: `webrocket`
11 --
12
13 -- --------------------------------------------------------
14
15 --
16 -- Table structure for table `cake_sessions`
17 --
18
19 DROP TABLE IF EXISTS `cake_sessions`;
20 CREATE TABLE `cake_sessions` (
21   `id` varchar(255) NOT NULL default '',
22   `data` text,
23   `expires` int(11) default NULL,
24   PRIMARY KEY  (`id`)
25 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
26
27 -- --------------------------------------------------------
28
29 --
30 -- Table structure for table `comments`
31 --
32
33 DROP TABLE IF EXISTS `comments`;
34 CREATE TABLE `comments` (
35   `id` int(8) unsigned NOT NULL auto_increment,
36   `post_id` int(8) unsigned NOT NULL,
37   `user_id` int(8) unsigned NOT NULL,
38   `title` varchar(150) NOT NULL,
39   `body` text NOT NULL,
40   `published` tinyint(1) NOT NULL,
41   `created` datetime NOT NULL,
42   `modified` datetime NOT NULL,
43   PRIMARY KEY  (`id`)
44 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
45
46 -- --------------------------------------------------------
47
48 --
49 -- Table structure for table `config_categories`
50 --
51
52 DROP TABLE IF EXISTS `config_categories`;
53 CREATE TABLE `config_categories` (
54   `id` int(10) unsigned NOT NULL auto_increment,
55   `name` varchar(50) NOT NULL,
56   `descname` varchar(50) NOT NULL,
57   `desc` varchar(255) NOT NULL,
58   PRIMARY KEY  (`id`)
59 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
60
61 -- --------------------------------------------------------
62
63 --
64 -- Table structure for table `configs`
65 --
66
67 DROP TABLE IF EXISTS `configs`;
68 CREATE TABLE `configs` (
69   `id` int(10) unsigned NOT NULL auto_increment,
70   `config_category_id` int(10) unsigned NOT NULL,
71   `key` varchar(50) NOT NULL,
72   `value` varchar(50) NOT NULL,
73   PRIMARY KEY  (`id`)
74 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
75
76 -- --------------------------------------------------------
77
78 --
79 -- Table structure for table `copyrights`
80 --
81
82 DROP TABLE IF EXISTS `copyrights`;
83 CREATE TABLE `copyrights` (
84   `id` int(8) unsigned NOT NULL,
85   `name` varchar(255) NOT NULL,
86   `licence` text NOT NULL,
87   PRIMARY KEY  (`id`)
88 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
89
90 -- --------------------------------------------------------
91
92 --
93 -- Table structure for table `countries`
94 --
95
96 DROP TABLE IF EXISTS `countries`;
97 CREATE TABLE `countries` (
98   `id` smallint(6) NOT NULL auto_increment,
99   `twoAbrev` char(2) collate utf8_unicode_ci NOT NULL,
100   `threeAbrev` char(3) collate utf8_unicode_ci NOT NULL,
101   `code` int(11) NOT NULL default '0',
102   `name` varchar(50) collate utf8_unicode_ci NOT NULL,
103   PRIMARY KEY  (`id`)
104 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=240 ;
105
106 -- --------------------------------------------------------
107
108 --
109 -- Table structure for table `event_types`
110 --
111
112 DROP TABLE IF EXISTS `event_types`;
113 CREATE TABLE `event_types` (
114   `id` int(8) unsigned NOT NULL,
115   `name` varchar(50) NOT NULL,
116   PRIMARY KEY  (`id`)
117 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
118
119 -- --------------------------------------------------------
120
121 --
122 -- Table structure for table `events`
123 --
124
125 DROP TABLE IF EXISTS `events`;
126 CREATE TABLE `events` (
127   `id` int(8) unsigned NOT NULL auto_increment,
128   `venue` varchar(50) NOT NULL,
129   `address` varchar(255) default NULL,
130   `city` varchar(50) NOT NULL,
131   `country_id` int(3) NOT NULL,
132   `postcode` varchar(10) NOT NULL,
133   `lat` varchar(50) NOT NULL,
134   `long` varchar(50) NOT NULL,
135   `event_type_id` int(8) unsigned NOT NULL,
136   `event_date` date NOT NULL,
137   `event_time` time default NULL,
138   `event_url` varchar(255) default NULL,
139   `notes` text,
140   `user_id` int(8) unsigned NOT NULL,
141   `published` tinyint(1) NOT NULL,
142   `created` datetime NOT NULL,
143   `modified` datetime NOT NULL,
144   PRIMARY KEY  (`id`)
145 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
146
147 -- --------------------------------------------------------
148
149 --
150 -- Table structure for table `feeds`
151 --
152
153 DROP TABLE IF EXISTS `feeds`;
154 CREATE TABLE `feeds` (
155   `id` int(8) unsigned NOT NULL auto_increment,
156   `feed_name` varchar(255) NOT NULL,
157   `feed_url` varchar(255) NOT NULL,
158   `published` tinyint(1) NOT NULL default '0',
159   `created` datetime NOT NULL,
160   `modified` datetime NOT NULL,
161   PRIMARY KEY  (`id`)
162 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
163
164 -- --------------------------------------------------------
165
166 --
167 -- Table structure for table `galleries`
168 --
169
170 DROP TABLE IF EXISTS `galleries`;
171 CREATE TABLE `galleries` (
172   `id` int(8) unsigned NOT NULL auto_increment,
173   `name` varchar(255) NOT NULL,
174   `url` varchar(255) NOT NULL,
175   `primary_image` int(8) unsigned NOT NULL,
176   `published` tinyint(1) NOT NULL,
177   `created` datetime NOT NULL,
178   `modified` datetime NOT NULL,
179   PRIMARY KEY  (`id`)
180 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
181
182 -- --------------------------------------------------------
183
184 --
185 -- Table structure for table `galleries_images`
186 --
187
188 DROP TABLE IF EXISTS `galleries_images`;
189 CREATE TABLE `galleries_images` (
190   `gallery_id` int(8) unsigned NOT NULL,
191   `image_id` int(8) unsigned NOT NULL
192 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
193
194 -- --------------------------------------------------------
195
196 --
197 -- Table structure for table `groups`
198 --
199
200 DROP TABLE IF EXISTS `groups`;
201 CREATE TABLE `groups` (
202   `id` int(10) unsigned NOT NULL auto_increment,
203   `name` varchar(50) character set utf8 collate utf8_unicode_ci NOT NULL,
204   `level` int(11) NOT NULL,
205   `redirect` varchar(50) character set utf8 collate utf8_unicode_ci NOT NULL,
206   `perm_type` enum('allow','deny') NOT NULL default 'allow',
207   `created` datetime NOT NULL default '0000-00-00 00:00:00',
208   `modified` datetime NOT NULL default '0000-00-00 00:00:00',
209   PRIMARY KEY  (`id`)
210 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
211
212 -- --------------------------------------------------------
213
214 --
215 -- Table structure for table `groups_permissions`
216 --
217
218 DROP TABLE IF EXISTS `groups_permissions`;
219 CREATE TABLE `groups_permissions` (
220   `group_id` int(10) unsigned NOT NULL default '0',
221   `permission_id` int(10) unsigned NOT NULL default '0',
222   KEY `group_id` (`group_id`,`permission_id`)
223 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
224
225 -- --------------------------------------------------------
226
227 --
228 -- Table structure for table `images`
229 --
230
231 DROP TABLE IF EXISTS `images`;
232 CREATE TABLE `images` (
233   `id` int(8) unsigned NOT NULL auto_increment,
234   `filename` varchar(150) NOT NULL,
235   `filesize` int(11) NOT NULL,
236   `alt` varchar(255) NOT NULL,
237   `type` varchar(15) NOT NULL,
238   `copyright_owner` varchar(255) default NULL,
239   `copyright_id` int(8) unsigned NOT NULL default '1',
240   `lat` decimal(10,0) default NULL,
241   `long` decimal(10,0) default NULL,
242   `created` datetime NOT NULL,
243   `modified` datetime NOT NULL,
244   PRIMARY KEY  (`id`),
245   UNIQUE KEY `filename` (`filename`)
246 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=36 ;
247
248 -- --------------------------------------------------------
249
250 --
251 -- Table structure for table `login_attempts`
252 --
253
254 DROP TABLE IF EXISTS `login_attempts`;
255 CREATE TABLE `login_attempts` (
256   `ip` varchar(15) character set utf8 collate utf8_unicode_ci NOT NULL,
257   `num` int(11) NOT NULL default '1',
258   `expire` datetime NOT NULL,
259   `created` datetime NOT NULL,
260   PRIMARY KEY  (`ip`)
261 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
262
263 -- --------------------------------------------------------
264
265 --
266 -- Table structure for table `menus`
267 --
268
269 DROP TABLE IF EXISTS `menus`;
270 CREATE TABLE `menus` (
271   `id` int(11) unsigned NOT NULL auto_increment,
272   `name` varchar(255) NOT NULL,
273   `url` varchar(255) NOT NULL,
274   `position` int(5) NOT NULL,
275   `icon` varchar(255) default NULL,
276   `parent_id` int(11) unsigned NOT NULL,
277   `lft` tinyint(4) NOT NULL,
278   `rght` tinyint(4) NOT NULL,
279   `section_id` int(11) unsigned NOT NULL,
280   `access_level` int(3) NOT NULL,
281   `published` tinyint(1) NOT NULL default '1',
282   `created` datetime NOT NULL,
283   `modified` datetime NOT NULL,
284   PRIMARY KEY  (`id`)
285 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=44 ;
286 CREATE TABLE `menus` (
287   `id` int(11) unsigned NOT NULL auto_increment,
288   `name` varchar(50) NOT NULL,
289   `url` varchar(150) NOT NULL,
290   `position` int(5) NOT NULL,
291   `icon` varchar(255) default NULL,
292   `parent_id` int(11) unsigned NOT NULL,
293   `section_id` int(11) unsigned NOT NULL,
294   `access_level` int(3) NOT NULL,
295   PRIMARY KEY  (`id`)
296 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=28 ;
297
298 -- --------------------------------------------------------
299
300 --
301 -- Table structure for table `pages`
302 --
303
304 DROP TABLE IF EXISTS `pages`;
305 CREATE TABLE `pages` (
306   `id` int(8) unsigned NOT NULL auto_increment,
307   `url` varchar(150) NOT NULL,
308   `title` varchar(50) NOT NULL,
309   `body` text NOT NULL,
310   `published` tinyint(1) NOT NULL default '0',
311   `user_id` int(8) unsigned NOT NULL,
312   `subject_id` int(8) unsigned NOT NULL,
313   `copyright_id` int(8) unsigned NOT NULL default '1',
314   `created` datetime NOT NULL,
315   `modified` datetime NOT NULL,
316   PRIMARY KEY  (`id`)
317 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
318
319 -- --------------------------------------------------------
320
321 --
322 -- Table structure for table `permissions`
323 --
324
325 DROP TABLE IF EXISTS `permissions`;
326 CREATE TABLE `permissions` (
327   `id` int(10) unsigned NOT NULL auto_increment,
328   `name` varchar(50) NOT NULL default '',
329   `created` datetime NOT NULL default '0000-00-00 00:00:00',
330   `modified` datetime NOT NULL default '0000-00-00 00:00:00',
331   PRIMARY KEY  (`id`),
332   UNIQUE KEY `name` (`name`)
333 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
334
335 -- --------------------------------------------------------
336
337 --
338 -- Table structure for table `posts`
339 --
340
341 DROP TABLE IF EXISTS `posts`;
342 CREATE TABLE `posts` (
343   `id` int(8) unsigned NOT NULL auto_increment,
344   `title` varchar(150) NOT NULL,
345   `byline` varchar(255) NOT NULL,
346   `body` text NOT NULL,
347   `user_id` int(8) unsigned NOT NULL,
348   `subject_id` int(8) unsigned NOT NULL,
349   `copyright_id` int(8) unsigned NOT NULL default '1',
350   `url` varchar(200) NOT NULL,
351   `published` tinyint(1) NOT NULL default '0',
352   `created` datetime NOT NULL,
353   `modified` datetime NOT NULL,
354   PRIMARY KEY  (`id`)
355 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
356
357 -- --------------------------------------------------------
358
359 --
360 -- Table structure for table `profiles`
361 --
362
363 DROP TABLE IF EXISTS `profiles`;
364 CREATE TABLE `profiles` (
365   `id` int(8) unsigned NOT NULL auto_increment,
366   `user_id` int(8) unsigned NOT NULL,
367   `country` varchar(2) NOT NULL,
368   `dob` date NOT NULL,
369   `homepage` varchar(150) NOT NULL,
370   `image` varchar(150) NOT NULL,
371   `created` datetime NOT NULL,
372   `modified` datetime NOT NULL,
373   PRIMARY KEY  (`id`)
374 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
375
376 -- --------------------------------------------------------
377
378 --
379 -- Table structure for table `sections`
380 --
381
382 DROP TABLE IF EXISTS `sections`;
383 CREATE TABLE `sections` (
384   `id` int(8) unsigned NOT NULL auto_increment,
385   `name` varchar(50) NOT NULL,
386   PRIMARY KEY  (`id`)
387 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
388
389 -- --------------------------------------------------------
390
391 --
392 -- Table structure for table `states`
393 --
394
395 DROP TABLE IF EXISTS `states`;
396 CREATE TABLE `states` (
397   `id` tinyint(4) NOT NULL auto_increment,
398   `ab` char(2) collate utf8_unicode_ci NOT NULL,
399   `name` varchar(20) collate utf8_unicode_ci NOT NULL,
400   `cntry` varchar(13) collate utf8_unicode_ci NOT NULL,
401   PRIMARY KEY  (`id`)
402 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=67 ;
403
404 -- --------------------------------------------------------
405
406 --
407 -- Table structure for table `subjects`
408 --
409
410 DROP TABLE IF EXISTS `subjects`;
411 CREATE TABLE `subjects` (
412   `id` int(8) unsigned NOT NULL auto_increment,
413   `name` varchar(50) NOT NULL,
414   `created` datetime NOT NULL,
415   `modified` datetime NOT NULL,
416   PRIMARY KEY  (`id`)
417 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
418
419 -- --------------------------------------------------------
420
421 --
422 -- Table structure for table `user_histories`
423 --
424
425 DROP TABLE IF EXISTS `user_histories`;
426 CREATE TABLE `user_histories` (
427   `id` int(10) unsigned NOT NULL auto_increment,
428   `username` varchar(32) NOT NULL,
429   `fullname` varchar(64) NOT NULL,
430   `groupname` varchar(32) NOT NULL,
431   `visitdate` datetime NOT NULL,
432   PRIMARY KEY  (`id`)
433 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
434
435 -- --------------------------------------------------------
436
437 --
438 -- Table structure for table `users`
439 --
440
441 DROP TABLE IF EXISTS `users`;
442 CREATE TABLE `users` (
443   `id` int(10) unsigned NOT NULL auto_increment,
444   `username` varchar(50) NOT NULL default '',
445   `passwd` varchar(32) NOT NULL default '',
446   `name` varchar(50) NOT NULL default '',
447   `email` varchar(100) NOT NULL default '',
448   `last_visit` datetime NOT NULL default '0000-00-00 00:00:00',
449   `group_id` int(10) unsigned NOT NULL default '0',
450   `profile_id` int(8) unsigned NOT NULL default '0',
451   `active` tinyint(1) unsigned NOT NULL default '0',
452   `created` datetime NOT NULL default '0000-00-00 00:00:00',
453   `modified` datetime NOT NULL default '0000-00-00 00:00:00',
454   PRIMARY KEY  (`id`),
455   UNIQUE KEY `username` (`username`),
456   UNIQUE KEY `email` (`email`,`username`),
457   KEY `group_id` (`group_id`)
458 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
459
460 -- --------------------------------------------------------
461
462 --
463 -- Table structure for table `videos`
464 --
465
466 DROP TABLE IF EXISTS `videos`;
467 CREATE TABLE `videos` (
468   `id` int(8) unsigned NOT NULL auto_increment,
469   `filename` varchar(255) NOT NULL,
470   `mimetype` varchar(255) NOT NULL,
471   `filesize` int(15) NOT NULL,
472   `video_location` varchar(255) NOT NULL,
473   `video_date` date NOT NULL,
474   `video_notes` text NOT NULL,
475   `copyright_owner` varchar(255) NOT NULL,
476   `copyright_id` int(8) unsigned NOT NULL,
477   `published` tinyint(1) NOT NULL,
478   `created` datetime NOT NULL,
479   `modified` datetime NOT NULL,
480   PRIMARY KEY  (`id`)
481 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ;
482
483
484 -- phpMyAdmin SQL Dump
485 -- version 2.9.1.1-Debian-2ubuntu1
486 -- http://www.phpmyadmin.net
487 --
488 -- Host: localhost
489 -- Generation Time: Apr 29, 2007 at 03:27 PM
490 -- Server version: 5.0.38
491 -- PHP Version: 5.2.1
492 --
493 -- Database: `webrocket`
494 --
495
496 --
497 -- Dumping data for table `config_categories`
498 --
499
500 INSERT INTO `config_categories` (`id`, `name`, `descname`, `desc`) VALUES
501 (1, 'general', 'Site Options', 'These are the main options that control the site'),
502 (2, 'video', '', '');
503
504 --
505 -- Dumping data for table `configs`
506 --
507
508 INSERT INTO `configs` (`id`, `config_category_id`, `key`, `value`) VALUES
509 (1, 1, 'siteurl', 'http://webrocket'),
510 (2, 1, 'enable_comments', '1'),
511 (3, 1, 'enable_captcha', '0'),
512 (4, 1, 'sitedesc', 'Built with CakePHP'),
513 (5, 1, 'sitename', 'Web Rocket'),
514 (6, 2, 'width', '320'),
515 (7, 2, 'height', '240'),
516 (8, 2, 'samplerate', '22050'),
517 (9, 2, 'bitrate', '32');
518
519 --
520 -- Dumping data for table `copyrights`
521 --
522
523 INSERT INTO `copyrights` (`id`, `name`, `licence`) VALUES
524 (0, 'MIT Licence', '<p>\r\nCopyright (c) <year> <copyright holders>\r\n</p>\r\n<p>\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the "Software"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n</p>\r\n<p>\r\nThe above copyright notice and this permission notice shall be included in\r\nall copies or substantial portions of the Software.\r\n</p>\r\n<p>\r\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\nTHE SOFTWARE.\r\n</p>'),
525 (1, 'Creative Commons Attribution 3.0', '<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">\r\n<img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png" />\r\n</a>\r\n<br />This \r\n<span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/StillImage" rel="dc:type">work</span> is licensed under a \r\n<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 License</a>.'),
526 (2, 'Creative Commons Attribution-Share Alike 3.0', '<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">\r\n<img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" />\r\n</a>\r\n<br />This \r\n<span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/StillImage" rel="dc:type">work</span> is licensed under a \r\n<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-Share Alike 3.0 License</a>.'),
527 (3, 'Creative Commons Attribution-No Derivative Works 3.0', '<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">\r\n<img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nd/3.0/88x31.png" />\r\n</a>\r\n<br />This \r\n<span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/StillImage" rel="dc:type">work</span> is licensed under a \r\n<a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/">Creative Commons Attribution-No Derivative Works 3.0 License</a>.'),
528 (4, 'Creative Commons Attribution-Noncommercial 3.0', '<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/">\r\n<img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/3.0/88x31.png" />\r\n</a>\r\n<br />This \r\n<span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/StillImage" rel="dc:type">work</span> is licensed under a \r\n<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/">Creative Commons Attribution-Noncommercial 3.0 License</a>.'),
529 (5, 'Creative Commons Attribution-Noncommercial-Share Alike 3.0', '<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">\r\n<img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png" />\r\n</a>\r\n<br />This \r\n<span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/StillImage" rel="dc:type">work</span> is licensed under a \r\n<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 License</a>.'),
530 (6, 'Creative Commons Attribution-Noncommercial-No Derivative Works 3.0', '<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/">\r\n<img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/88x31.png" />\r\n</a>\r\n<br />This \r\n<span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/StillImage" rel="dc:type">work</span> is licensed under a \r\n<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/">Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License</a>.');
531
532 --
533 -- Dumping data for table `countries`
534 --
535
536 INSERT INTO `countries` (`id`, `twoAbrev`, `threeAbrev`, `code`, `name`) VALUES
537 (1, 'GB', 'GBR', 826, 'United Kingdom'),
538 (2, 'AL', 'ALB', 8, 'Albania'),
539 (3, 'DZ', 'DZA', 12, 'Algeria'),
540 (4, 'AS', 'ASM', 16, 'American Samoa'),
541 (5, 'AD', 'AND', 20, 'Andorra'),
542 (6, 'AO', 'AGO', 24, 'Angola'),
543 (7, 'AI', 'AIA', 660, 'Anguilla'),
544 (8, 'AQ', 'ATA', 10, 'Anarctica'),
545 (9, 'AG', 'ATG', 28, 'Antigua and Barbuda'),
546 (10, 'AR', 'ARG', 32, 'Argentina'),
547 (11, 'AM', 'ARM', 51, 'Armenia'),
548 (12, 'AW', 'ABW', 533, 'Aruba'),
549 (13, 'AU', 'AUS', 36, 'Australia'),
550 (14, 'AT', 'AUT', 40, 'Austria'),
551 (15, 'AZ', 'AZE', 31, 'Azerbaijan'),
552 (16, 'BS', 'BHS', 44, 'Bahamas'),
553 (17, 'BH', 'BHR', 48, 'Bahrain'),
554 (18, 'BD', 'BGD', 50, 'Bangladesh'),
555 (19, 'BB', 'BRB', 52, 'Barbados'),
556 (20, 'BY', 'BLR', 112, 'Belarus'),
557 (21, 'BE', 'BEL', 56, 'Belgiun'),
558 (22, 'BZ', 'BLZ', 84, 'Belize'),
559 (23, 'BJ', 'BEN', 204, 'Benin'),
560 (24, 'BM', 'BMU', 60, 'Bermuda'),
561 (25, 'BT', 'BTN', 64, 'Bhutan'),
562 (26, 'BO', 'BOL', 68, 'Bolivia'),
563 (27, 'BA', 'BIH', 70, 'Bosnia & Herzegowina'),
564 (28, 'BW', 'BWA', 72, 'Botswana'),
565 (29, 'BV', 'BVT', 74, 'Bouvet Is.'),
566 (30, 'BR', 'BRA', 76, 'Brazil'),
567 (31, 'IO', 'IOT', 86, 'Brit. Indian Ocean Terr.'),
568 (32, 'BN', 'BRN', 96, 'Brunei Darussalam'),
569 (33, 'BG', 'BGR', 100, 'Bulgaria'),
570 (34, 'BF', 'BFA', 854, 'Burkina Faso'),
571 (35, 'BI', 'BDI', 108, 'Burundi'),
572 (36, 'KH', 'KHM', 116, 'Cambodia'),
573 (37, 'CM', 'CMR', 120, 'Cameron'),
574 (38, 'CA', 'CAN', 124, 'Canada'),
575 (39, 'CV', 'CPV', 132, 'Cape Verde'),
576 (40, 'KY', 'CYM', 136, 'Cayman Islands'),
577 (41, 'CF', 'CAF', 140, 'Central African Rep.'),
578 (42, 'TD', 'TCD', 148, 'Chad'),
579 (43, 'CL', 'CHL', 152, 'Chile'),
580 (44, 'CN', 'CHN', 156, 'China'),
581 (45, 'CX', 'CXR', 162, 'Christmas Island'),
582 (46, 'CC', 'CCK', 166, 'Cocos (Keeling) Is.'),
583 (47, 'CO', 'COL', 170, 'Colombia'),
584 (48, 'KM', 'COM', 174, 'Comoros'),
585 (49, 'CG', 'COG', 178, 'Congo'),
586 (50, 'CD', 'COD', 180, 'Congo, Democratic Rep.'),
587 (51, 'CK', 'COK', 184, 'Cook Islands'),
588 (52, 'CR', 'CRI', 188, 'Costa Rica'),
589 (53, 'CI', 'CIV', 384, 'Cote D''ivoire'),
590 (54, 'HR', 'HRV', 191, 'Croatia (Hrvatska)'),
591 (55, 'CU', 'CUB', 192, 'Cuba'),
592 (56, 'CY', 'CYP', 196, 'Cyprus'),
593 (57, 'CZ', 'CZE', 203, 'Czech Republic'),
594 (58, 'DK', 'DNK', 208, 'Denmark'),
595 (59, 'DJ', 'DJI', 262, 'Djibouti'),
596 (60, 'DM', 'DMA', 212, 'Dominica'),
597 (61, 'DO', 'DOM', 214, 'Dominican Republic'),
598 (62, 'TP', 'TMP', 626, 'East Timor'),
599 (63, 'EC', 'ECU', 218, 'Ecuador'),
600 (64, 'EG', 'EGY', 818, 'Egypt'),
601 (65, 'SV', 'SLV', 222, 'El Salvador'),
602 (66, 'GQ', 'GNQ', 226, 'Equatorial Guinea'),
603 (67, 'ER', 'ERI', 232, 'Eritrea'),
604 (68, 'EE', 'EST', 233, 'Estonia'),
605 (69, 'ET', 'ETH', 231, 'Ethiopia'),
606 (70, 'FK', 'FLK', 238, 'Falkland Is.(Malvinas)'),
607 (71, 'FO', 'FRO', 234, 'Faroe Islands'),
608 (72, 'FJ', 'FJI', 242, 'Fiji'),
609 (73, 'FI', 'FIN', 246, 'Finland'),
610 (74, 'FR', 'FRA', 250, 'France'),
611 (75, 'FX', 'FXX', 249, 'France, Metro.'),
612 (76, 'GF', 'GUF', 254, 'French Guiana'),
613 (77, 'PF', 'PYF', 258, 'French Polynesia'),
614 (78, 'TF', 'ATF', 260, 'French South Terr.'),
615 (79, 'GA', 'GAB', 266, 'Gabon'),
616 (80, 'GM', 'GMB', 270, 'Gambia'),
617 (81, 'GE', 'GEO', 268, 'Georgia'),
618 (82, 'DE', 'DEU', 276, 'Germany'),
619 (83, 'GH', 'GHA', 288, 'Ghana'),
620 (84, 'GI', 'GIB', 292, 'Gibraltar'),
621 (85, 'GR', 'GRC', 300, 'Greece'),
622 (86, 'GL', 'GRL', 304, 'Greenland'),
623 (87, 'GD', 'GRD', 308, 'Grenada'),
624 (88, 'GP', 'GLP', 312, 'Guadeloupe'),
625 (89, 'GU', 'GUM', 316, 'Guam'),
626 (90, 'GT', 'GTM', 320, 'Guatemala'),
627 (91, 'GN', 'GIN', 324, 'Guinea'),
628 (92, 'GW', 'GNB', 624, 'Guinea-Bissau'),
629 (93, 'GY', 'GUY', 328, 'Guyana'),
630 (94, 'HT', 'HTI', 332, 'Haiti'),
631 (95, 'HM', 'HMD', 334, 'Heard & Mc Donald Is.'),
632 (96, 'VA', 'VAT', 336, 'Holy See(Vatican City St.)'),
633 (97, 'HN', 'HND', 340, 'Honduras'),
634 (98, 'HK', 'HKG', 344, 'Hong Kong'),
635 (99, 'HU', 'HUN', 348, 'Hungary'),
636 (100, 'IS', 'ISL', 352, 'Iceland'),
637 (101, 'IN', 'IND', 356, 'India'),
638 (102, 'ID', 'IDN', 360, 'Indonesia'),
639 (103, 'IR', 'IRN', 364, 'Iran (Islamic Rep.)'),
640 (104, 'IQ', 'IRQ', 368, 'Iraq'),
641 (105, 'IE', 'IRL', 372, 'Ireland'),
642 (106, 'IL', 'ISR', 376, 'Israel'),
643 (107, 'IT', 'ITA', 380, 'Italy'),
644 (108, 'JM', 'JAM', 388, 'Jamaica'),
645 (109, 'JP', 'JPN', 392, 'Japan'),
646 (110, 'JO', 'JOR', 400, 'Jordan'),
647 (111, 'KZ', 'KAZ', 398, 'Kazakhstan'),
648 (112, 'KE', 'KEN', 404, 'Kenya'),
649 (113, 'KI', 'KIR', 296, 'Kiribati'),
650 (114, 'KP', 'PRK', 408, 'Korea, Dem. People''s Rep.'),
651 (115, 'KR', 'KOR', 410, 'Korea, Rep.'),
652 (116, 'KW', 'KWT', 414, 'Kuwait'),
653 (117, 'KG', 'KGZ', 417, 'Kyrgyzstan'),
654 (118, 'LA', 'LAO', 418, 'Lao People''s Dem. Rep.'),
655 (119, 'LV', 'LVA', 428, 'Latvia'),
656 (120, 'LB', 'LBN', 422, 'Lebanon'),
657 (121, 'LS', 'LSO', 426, 'Lesotho'),
658 (122, 'LR', 'LBR', 430, 'Liberia'),
659 (123, 'LY', 'LBY', 434, 'Libyan Arab Jamahiriya'),
660 (124, 'LI', 'LIE', 438, 'Liechtenstein'),
661 (125, 'LT', 'LTU', 440, 'Lithuania'),
662 (126, 'LU', 'LUX', 442, 'Luxembourg'),
663 (127, 'MO', 'MAC', 446, 'Macau'),
664 (128, 'MK', 'MKD', 807, 'Macedonia, Frmr. Yugoslav Rep.'),
665 (129, 'MG', 'MDG', 450, 'Madagascar'),
666 (130, 'MW', 'MWI', 454, 'Malawi'),
667 (131, 'MY', 'MYS', 458, 'Malaysia'),
668 (132, 'MV', 'MDV', 462, 'Maldives'),
669 (133, 'ML', 'MLI', 466, 'Mali'),
670 (134, 'MT', 'MLT', 470, 'Malta'),
671 (135, 'MH', 'MHL', 584, 'Marshall Is.'),
672 (136, 'MQ', 'MTQ', 474, 'Martinique'),
673 (137, 'MR', 'MRT', 478, 'Mauritania'),
674 (138, 'MU', 'MUS', 480, 'Mauritius'),
675 (139, 'YT', 'MYT', 175, 'Mayotte'),
676 (140, 'MX', 'MEX', 484, 'Mexico'),
677 (141, 'FM', 'FSM', 583, 'Micronesia, Fed. St.'),
678 (142, 'MD', 'MDA', 498, 'Moldova, Rep.'),
679 (143, 'MC', 'MCO', 492, 'Monaco'),
680 (144, 'MN', 'MNG', 496, 'Mongolia'),
681 (145, 'MS', 'MSR', 500, 'Montserrat'),
682 (146, 'MA', 'MAR', 504, 'Morocco'),
683 (147, 'MZ', 'MOZ', 508, 'Mozambique'),
684 (148,