| 93 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| | 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(50) NOT NULL, |
|---|
| | 273 | `url` varchar(150) NOT NULL, |
|---|
| | 274 | `position` int(5) NOT NULL, |
|---|
| | 275 | `icon` varchar(255) default NULL, |
|---|
| | 276 | `parent_id` int(11) unsigned NOT NULL, |
|---|
| | 277 | `section_id` int(11) unsigned NOT NULL, |
|---|
| | 278 | `access_level` int(3) NOT NULL, |
|---|
| | 279 | PRIMARY KEY (`id`) |
|---|
| | 280 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=28 ; |
|---|
| | 281 | |
|---|
| | 282 | -- -------------------------------------------------------- |
|---|
| | 283 | |
|---|
| | 284 | -- |
|---|
| | 285 | -- Table structure for table `pages` |
|---|
| | 286 | -- |
|---|
| | 287 | |
|---|
| | 288 | DROP TABLE IF EXISTS `pages`; |
|---|
| | 289 | CREATE TABLE `pages` ( |
|---|
| | 290 | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| | 291 | `url` varchar(150) NOT NULL, |
|---|
| | 292 | `title` varchar(50) NOT NULL, |
|---|
| | 293 | `body` text NOT NULL, |
|---|
| | 294 | `published` tinyint(1) NOT NULL default '0', |
|---|
| | 295 | `user_id` int(8) unsigned NOT NULL, |
|---|
| | 296 | `subject_id` int(8) unsigned NOT NULL, |
|---|
| | 297 | `copyright_id` int(8) unsigned NOT NULL default '1', |
|---|
| | 298 | `created` datetime NOT NULL, |
|---|
| | 299 | `modified` datetime NOT NULL, |
|---|
| | 300 | PRIMARY KEY (`id`) |
|---|
| | 301 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; |
|---|
| | 302 | |
|---|
| | 303 | -- -------------------------------------------------------- |
|---|
| | 304 | |
|---|
| | 305 | -- |
|---|
| | 306 | -- Table structure for table `permissions` |
|---|
| | 307 | -- |
|---|
| | 308 | |
|---|
| | 309 | DROP TABLE IF EXISTS `permissions`; |
|---|
| | 310 | CREATE TABLE `permissions` ( |
|---|
| | 311 | `id` int(10) unsigned NOT NULL auto_increment, |
|---|
| | 312 | `name` varchar(50) NOT NULL default '', |
|---|
| | 313 | `created` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| | 314 | `modified` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| | 315 | PRIMARY KEY (`id`), |
|---|
| | 316 | UNIQUE KEY `name` (`name`) |
|---|
| | 317 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ; |
|---|
| | 318 | |
|---|
| | 319 | -- -------------------------------------------------------- |
|---|
| | 320 | |
|---|
| | 321 | -- |
|---|
| | 322 | -- Table structure for table `posts` |
|---|
| | 323 | -- |
|---|
| | 324 | |
|---|
| | 325 | DROP TABLE IF EXISTS `posts`; |
|---|
| | 326 | CREATE TABLE `posts` ( |
|---|
| | 327 | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| | 328 | `title` varchar(150) NOT NULL, |
|---|
| | 329 | `byline` varchar(255) NOT NULL, |
|---|
| | 330 | `body` text NOT NULL, |
|---|
| | 331 | `user_id` int(8) unsigned NOT NULL, |
|---|
| | 332 | `subject_id` int(8) unsigned NOT NULL, |
|---|
| | 333 | `copyright_id` int(8) unsigned NOT NULL default '1', |
|---|
| | 334 | `url` varchar(200) NOT NULL, |
|---|
| | 335 | `published` tinyint(1) NOT NULL default '0', |
|---|
| | 336 | `created` datetime NOT NULL, |
|---|
| | 337 | `modified` datetime NOT NULL, |
|---|
| | 338 | PRIMARY KEY (`id`) |
|---|
| | 339 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; |
|---|
| | 340 | |
|---|
| | 341 | -- -------------------------------------------------------- |
|---|
| | 342 | |
|---|
| | 343 | -- |
|---|
| | 344 | -- Table structure for table `profiles` |
|---|
| | 345 | -- |
|---|
| | 346 | |
|---|
| | 347 | DROP TABLE IF EXISTS `profiles`; |
|---|
| | 348 | CREATE TABLE `profiles` ( |
|---|
| | 349 | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| | 350 | `user_id` int(8) unsigned NOT NULL, |
|---|
| | 351 | `country` varchar(2) NOT NULL, |
|---|
| | 352 | `dob` date NOT NULL, |
|---|
| | 353 | `homepage` varchar(150) NOT NULL, |
|---|
| | 354 | `image` varchar(150) NOT NULL, |
|---|
| | 355 | `created` datetime NOT NULL, |
|---|
| | 356 | `modified` datetime NOT NULL, |
|---|
| | 357 | PRIMARY KEY (`id`) |
|---|
| | 358 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
|---|
| | 359 | |
|---|
| | 360 | -- -------------------------------------------------------- |
|---|
| | 361 | |
|---|
| | 362 | -- |
|---|
| | 363 | -- Table structure for table `sections` |
|---|
| | 364 | -- |
|---|
| | 365 | |
|---|
| | 366 | DROP TABLE IF EXISTS `sections`; |
|---|
| | 367 | CREATE TABLE `sections` ( |
|---|
| | 368 | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| | 369 | `name` varchar(50) NOT NULL, |
|---|
| | 370 | PRIMARY KEY (`id`) |
|---|
| | 371 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; |
|---|
| | 372 | |
|---|
| | 373 | -- -------------------------------------------------------- |
|---|
| | 374 | |
|---|
| | 375 | -- |
|---|
| | 376 | -- Table structure for table `states` |
|---|
| | 377 | -- |
|---|
| | 378 | |
|---|
| | 379 | DROP TABLE IF EXISTS `states`; |
|---|
| | 380 | CREATE TABLE `states` ( |
|---|
| | 381 | `id` tinyint(4) NOT NULL auto_increment, |
|---|
| | 382 | `ab` char(2) collate utf8_unicode_ci NOT NULL, |
|---|
| | 383 | `name` varchar(20) collate utf8_unicode_ci NOT NULL, |
|---|
| | 384 | `cntry` varchar(13) collate utf8_unicode_ci NOT NULL, |
|---|
| | 385 | PRIMARY KEY (`id`) |
|---|
| | 386 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=67 ; |
|---|
| | 387 | |
|---|
| | 388 | -- -------------------------------------------------------- |
|---|
| | 389 | |
|---|
| | 390 | -- |
|---|
| | 391 | -- Table structure for table `subjects` |
|---|
| | 392 | -- |
|---|
| | 393 | |
|---|
| | 394 | DROP TABLE IF EXISTS `subjects`; |
|---|
| | 395 | CREATE TABLE `subjects` ( |
|---|
| | 396 | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| | 397 | `name` varchar(50) NOT NULL, |
|---|
| | 398 | `created` datetime NOT NULL, |
|---|
| | 399 | `modified` datetime NOT NULL, |
|---|
| | 400 | PRIMARY KEY (`id`) |
|---|
| | 401 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; |
|---|
| | 402 | |
|---|
| | 403 | -- -------------------------------------------------------- |
|---|
| | 404 | |
|---|
| | 405 | -- |
|---|
| | 406 | -- Table structure for table `user_histories` |
|---|
| | 407 | -- |
|---|
| | 408 | |
|---|
| | 409 | DROP TABLE IF EXISTS `user_histories`; |
|---|
| | 410 | CREATE TABLE `user_histories` ( |
|---|
| | 411 | `id` int(10) unsigned NOT NULL auto_increment, |
|---|
| | 412 | `username` varchar(32) NOT NULL, |
|---|
| | 413 | `fullname` varchar(64) NOT NULL, |
|---|
| | 414 | `groupname` varchar(32) NOT NULL, |
|---|
| | 415 | `visitdate` datetime NOT NULL, |
|---|
| | 416 | PRIMARY KEY (`id`) |
|---|
| | 417 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
|---|
| | 418 | |
|---|
| | 419 | -- -------------------------------------------------------- |
|---|
| | 420 | |
|---|
| | 421 | -- |
|---|
| | 422 | -- Table structure for table `users` |
|---|
| | 423 | -- |
|---|
| | 424 | |
|---|
| | 425 | DROP TABLE IF EXISTS `users`; |
|---|
| | 426 | CREATE TABLE `users` ( |
|---|
| | 427 | `id` int(10) unsigned NOT NULL auto_increment, |
|---|
| | 428 | `username` varchar(50) NOT NULL default '', |
|---|
| | 429 | `passwd` varchar(32) NOT NULL default '', |
|---|
| | 430 | `name` varchar(50) NOT NULL default '', |
|---|
| | 431 | `email` varchar(100) NOT NULL default '', |
|---|
| | 432 | `last_visit` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| | 433 | `group_id` int(10) unsigned NOT NULL default '0', |
|---|
| | 434 | `profile_id` int(8) unsigned NOT NULL default '0', |
|---|
| | 435 | `active` tinyint(1) unsigned NOT NULL default '0', |
|---|
| | 436 | `created` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| | 437 | `modified` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| | 438 | PRIMARY KEY (`id`), |
|---|
| | 439 | UNIQUE KEY `username` (`username`), |
|---|
| | 440 | UNIQUE KEY `email` (`email`,`username`), |
|---|
| | 441 | KEY `group_id` (`group_id`) |
|---|
| | 442 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; |
|---|
| | 443 | |
|---|
| | 444 | -- -------------------------------------------------------- |
|---|
| | 445 | |
|---|
| | 446 | -- |
|---|
| | 447 | -- Table structure for table `videos` |
|---|
| | 448 | -- |
|---|
| | 449 | |
|---|
| | 450 | DROP TABLE IF EXISTS `videos`; |
|---|
| | 451 | CREATE TABLE `videos` ( |
|---|
| | 452 | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| | 453 | `filename` varchar(255) NOT NULL, |
|---|
| | 454 | `mimetype` varchar(255) NOT NULL, |
|---|
| | 455 | `filesize` int(15) NOT NULL, |
|---|
| | 456 | `video_location` varchar(255) NOT NULL, |
|---|
| | 457 | `video_date` date NOT NULL, |
|---|
| | 458 | `video_notes` text NOT NULL, |
|---|
| | 459 | `copyright_owner` varchar(255) NOT NULL, |
|---|
| | 460 | `copyright_id` int(8) unsigned NOT NULL, |
|---|
| | 461 | `published` tinyint(1) NOT NULL, |
|---|
| | 462 | `created` datetime NOT NULL, |
|---|
| | 463 | `modified` datetime NOT NULL, |
|---|
| | 464 | PRIMARY KEY (`id`) |
|---|
| | 465 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ; |
|---|
| | 466 | |
|---|
| | 467 | |
|---|
| | 468 | -- phpMyAdmin SQL Dump |
|---|
| | 469 | -- version 2.9.1.1-Debian-2ubuntu1 |
|---|
| | 470 | -- http://www.phpmyadmin.net |
|---|
| | 471 | -- |
|---|
| | 472 | -- Host: localhost |
|---|
| | 473 | -- Generation Time: Apr 29, 2007 at 03:27 PM |
|---|
| | 474 | -- Server version: 5.0.38 |
|---|
| | 475 | -- PHP Version: 5.2.1 |
|---|
| | 476 | -- |
|---|
| | 477 | -- Database: `webrocket` |
|---|
| | 478 | -- |
|---|
| | 479 | |
|---|
| | 480 | -- |
|---|
| | 481 | -- Dumping data for table `config_categories` |
|---|
| | 482 | -- |
|---|
| | 483 | |
|---|
| | 484 | INSERT INTO `config_categories` (`id`, `name`, `descname`, `desc`) VALUES |
|---|
| | 485 | (1, 'general', 'Site Options', 'These are the main options that control the site'), |
|---|
| | 486 | (2, 'video', '', ''); |
|---|
| 394 | | -- -------------------------------------------------------- |
|---|
| 395 | | |
|---|
| 396 | | -- |
|---|
| 397 | | -- Table structure for table `event_types` |
|---|
| 398 | | -- |
|---|
| 399 | | |
|---|
| 400 | | DROP TABLE IF EXISTS `event_types`; |
|---|
| 401 | | CREATE TABLE `event_types` ( |
|---|
| 402 | | `id` int(8) unsigned NOT NULL, |
|---|
| 403 | | `name` varchar(50) NOT NULL, |
|---|
| 404 | | PRIMARY KEY (`id`) |
|---|
| 405 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| 406 | | |
|---|
| 407 | | -- |
|---|
| 408 | | -- Dumping data for table `event_types` |
|---|
| 409 | | -- |
|---|
| 410 | | |
|---|
| 411 | | INSERT INTO `event_types` (`id`, `name`) VALUES |
|---|
| 412 | | (0, 'Gig'), |
|---|
| 413 | | (1, 'Release'); |
|---|
| 414 | | |
|---|
| 415 | | -- -------------------------------------------------------- |
|---|
| 416 | | |
|---|
| 417 | | -- |
|---|
| 418 | | -- Table structure for table `events` |
|---|
| 419 | | -- |
|---|
| 420 | | |
|---|
| 421 | | DROP TABLE IF EXISTS `events`; |
|---|
| 422 | | CREATE TABLE `events` ( |
|---|
| 423 | | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| 424 | | `venue` varchar(50) NOT NULL, |
|---|
| 425 | | `address` varchar(255) default NULL, |
|---|
| 426 | | `city` varchar(50) NOT NULL, |
|---|
| 427 | | `country_id` int(3) NOT NULL, |
|---|
| 428 | | `postcode` varchar(10) NOT NULL, |
|---|
| 429 | | `lat` varchar(50) NOT NULL, |
|---|
| 430 | | `long` varchar(50) NOT NULL, |
|---|
| 431 | | `event_type_id` int(8) unsigned NOT NULL, |
|---|
| 432 | | `event_date` date NOT NULL, |
|---|
| 433 | | `event_time` time default NULL, |
|---|
| 434 | | `event_url` varchar(255) default NULL, |
|---|
| 435 | | `notes` text, |
|---|
| 436 | | `user_id` int(8) unsigned NOT NULL, |
|---|
| 437 | | `published` tinyint(1) NOT NULL, |
|---|
| 438 | | `created` datetime NOT NULL, |
|---|
| 439 | | `modified` datetime NOT NULL, |
|---|
| 440 | | PRIMARY KEY (`id`) |
|---|
| 441 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| 442 | | |
|---|
| 443 | | -- |
|---|
| 444 | | -- Dumping data for table `events` |
|---|
| 445 | | -- |
|---|
| 446 | | |
|---|
| 447 | | INSERT INTO `events` (`id`, `venue`, `address`, `city`, `country_id`, `postcode`, `lat`, `long`, `event_type_id`, `event_date`, `event_time`, `event_url`, `notes`, `user_id`, `published`, `created`, `modified`) VALUES |
|---|
| 448 | | (1, 'Test Event', '20 Dalgety Avenue', 'Edinburgh', 1, 'EH7 5UG', '', '', 0, '2007-06-30', '20:00:04', NULL, '<p style="background-color: #ff6600"><font color="#000000"><strong>This is a test event.</strong></font></p><p>This looks cool in the customised TinyMCE. </p>', 0, 1, '2007-04-21 20:07:36', '2007-04-21 20:30:04'); |
|---|
| 449 | | |
|---|
| 450 | | -- -------------------------------------------------------- |
|---|
| 451 | | |
|---|
| 452 | | -- |
|---|
| 453 | | -- Table structure for table `feeds` |
|---|
| 454 | | -- |
|---|
| 455 | | |
|---|
| 456 | | DROP TABLE IF EXISTS `feeds`; |
|---|
| 457 | | CREATE TABLE `feeds` ( |
|---|
| 458 | | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| 459 | | `feed_name` varchar(255) NOT NULL, |
|---|
| 460 | | `feed_url` varchar(255) NOT NULL, |
|---|
| 461 | | `published` tinyint(1) NOT NULL default '0', |
|---|
| 462 | | `created` datetime NOT NULL, |
|---|
| 463 | | `modified` datetime NOT NULL, |
|---|
| 464 | | PRIMARY KEY (`id`) |
|---|
| 465 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| 466 | | |
|---|
| 467 | | -- |
|---|
| 468 | | -- Dumping data for table `feeds` |
|---|
| 469 | | -- |
|---|
| 470 | | |
|---|
| 471 | | INSERT INTO `feeds` (`id`, `feed_name`, `feed_url`, `published`, `created`, `modified`) VALUES |
|---|
| 472 | | (4, 'SIte News', 'http://webrocket/posts/feed', 1, '2007-04-21 13:01:01', '2007-04-21 20:26:58'), |
|---|
| 473 | | (2, 'John Resig', 'http://jquery.com/blog/feed/', 1, '2007-04-20 23:25:17', '2007-04-21 20:27:07'), |
|---|
| 474 | | (3, 'Cakebaker', 'http://cakebaker.42dh.com/feed/', 1, '2007-04-20 23:25:35', '2007-04-21 20:27:14'); |
|---|
| 475 | | |
|---|
| 476 | | -- -------------------------------------------------------- |
|---|
| 477 | | |
|---|
| 478 | | -- |
|---|
| 479 | | -- Table structure for table `galleries` |
|---|
| 480 | | -- |
|---|
| 481 | | |
|---|
| 482 | | DROP TABLE IF EXISTS `galleries`; |
|---|
| 483 | | CREATE TABLE `galleries` ( |
|---|
| 484 | | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| 485 | | `name` varchar(255) NOT NULL, |
|---|
| 486 | | `url` varchar(255) NOT NULL, |
|---|
| 487 | | `primary_image` int(8) unsigned NOT NULL, |
|---|
| 488 | | `published` tinyint(1) NOT NULL, |
|---|
| 489 | | `created` datetime NOT NULL, |
|---|
| 490 | | `modified` datetime NOT NULL, |
|---|
| 491 | | PRIMARY KEY (`id`) |
|---|
| 492 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| 493 | | |
|---|
| 494 | | -- |
|---|
| 495 | | -- Dumping data for table `galleries` |
|---|
| 496 | | -- |
|---|
| 497 | | |
|---|
| 498 | | |
|---|
| 499 | | -- -------------------------------------------------------- |
|---|
| 500 | | |
|---|
| 501 | | -- |
|---|
| 502 | | -- Table structure for table `galleries_images` |
|---|
| 503 | | -- |
|---|
| 504 | | |
|---|
| 505 | | DROP TABLE IF EXISTS `galleries_images`; |
|---|
| 506 | | CREATE TABLE `galleries_images` ( |
|---|
| 507 | | `gallery_id` int(8) unsigned NOT NULL, |
|---|
| 508 | | `image_id` int(8) unsigned NOT NULL |
|---|
| 509 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| 510 | | |
|---|
| 511 | | -- |
|---|
| 512 | | -- Dumping data for table `galleries_images` |
|---|
| 513 | | -- |
|---|
| 514 | | |
|---|
| 515 | | |
|---|
| 516 | | -- -------------------------------------------------------- |
|---|
| 517 | | |
|---|
| 518 | | -- |
|---|
| 519 | | -- Table structure for table `groups` |
|---|
| 520 | | -- |
|---|
| 521 | | |
|---|
| 522 | | DROP TABLE IF EXISTS `groups`; |
|---|
| 523 | | CREATE TABLE `groups` ( |
|---|
| 524 | | `id` int(10) unsigned NOT NULL auto_increment, |
|---|
| 525 | | `name` varchar(50) character set utf8 collate utf8_unicode_ci NOT NULL, |
|---|
| 526 | | `level` int(11) NOT NULL, |
|---|
| 527 | | `redirect` varchar(50) character set utf8 collate utf8_unicode_ci NOT NULL, |
|---|
| 528 | | `perm_type` enum('allow','deny') NOT NULL default 'allow', |
|---|
| 529 | | `created` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| 530 | | `modified` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| 531 | | PRIMARY KEY (`id`) |
|---|
| 532 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| 533 | | |
|---|
| 640 | | (4, 'Manage Posts', '/admin/posts/', 0, 'admin-posts', 0, 3, 100), |
|---|
| 641 | | (5, 'Manage Pages', '/admin/pages/', 1, 'admin-pages', 0, 3, 100), |
|---|
| 642 | | (6, 'Manage Events', '/admin/events/', 2, 'admin-events', 0, 3, 100), |
|---|
| 643 | | (7, 'Manage Feeds', '/admin/feeds/', 3, 'admin-feeds', 0, 3, 100), |
|---|
| 644 | | (8, 'Manage Users', '/admin/users/', 4, 'admin-users', 0, 3, 100), |
|---|
| 645 | | (9, 'Manage Images', '/admin/images/', 5, 'admin-images', 0, 3, 100), |
|---|
| 646 | | (10, 'Manage Configurations', '/admin/configs/edit', 8, 'admin-options', 0, 3, 100), |
|---|
| 647 | | (11, 'Manage Galleries', '/admin/galleries', 7, 'admin-galleries', 0, 3, 100), |
|---|
| 648 | | (12, 'Admin', '/admin/home', 3, NULL, 0, 1, 200), |
|---|
| | 790 | (4, 'Manage Posts', '/admin/posts/', 0, 'admin-posts', 12, 1, 900), |
|---|
| | 791 | (5, 'Manage Pages', '/admin/pages/', 1, 'admin-pages', 12, 1, 900), |
|---|
| | 792 | (6, 'Manage Events', '/admin/events/', 2, 'admin-events', 12, 1, 900), |
|---|
| | 793 | (7, 'Manage Feeds', '/admin/feeds/', 3, 'admin-feeds', 12, 1, 900), |
|---|
| | 794 | (8, 'Manage Users', '/admin/users/', 4, 'admin-users', 12, 1, 900), |
|---|
| | 795 | (9, 'Manage Images', '/admin/images/', 5, 'admin-images', 12, 1, 900), |
|---|
| | 796 | (10, 'Manage Configurations', '#', 9, 'admin-options', 12, 1, 999), |
|---|
| | 797 | (11, 'Manage Galleries', '/admin/galleries', 7, 'admin-galleries', 12, 1, 900), |
|---|
| | 798 | (12, 'Admin', '#', 5, '', 0, 1, 900), |
|---|
| 650 | | (14, 'Manage Videos', '/admin/videos', 6, 'admin-videos', 0, 3, 100); |
|---|
| 651 | | |
|---|
| 652 | | -- -------------------------------------------------------- |
|---|
| 653 | | |
|---|
| 654 | | -- |
|---|
| 655 | | -- Table structure for table `pages` |
|---|
| 656 | | -- |
|---|
| 657 | | |
|---|
| 658 | | DROP TABLE IF EXISTS `pages`; |
|---|
| 659 | | CREATE TABLE `pages` ( |
|---|
| 660 | | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| 661 | | `url` varchar(150) NOT NULL, |
|---|
| 662 | | `title` varchar(50) NOT NULL, |
|---|
| 663 | | `body` text NOT NULL, |
|---|
| 664 | | `published` tinyint(1) NOT NULL default '0', |
|---|
| 665 | | `user_id` int(8) unsigned NOT NULL, |
|---|
| 666 | | `subject_id` int(8) unsigned NOT NULL, |
|---|
| 667 | | `copyright_id` int(8) unsigned NOT NULL default '1', |
|---|
| 668 | | `created` datetime NOT NULL, |
|---|
| 669 | | `modified` datetime NOT NULL, |
|---|
| 670 | | PRIMARY KEY (`id`) |
|---|
| 671 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| 672 | | |
|---|
| 673 | | -- |
|---|
| 674 | | -- Dumping data for table `pages` |
|---|
| 675 | | -- |
|---|
| 676 | | |
|---|
| 677 | | |
|---|
| 678 | | -- -------------------------------------------------------- |
|---|
| 679 | | |
|---|
| 680 | | -- |
|---|
| 681 | | -- Table structure for table `permissions` |
|---|
| 682 | | -- |
|---|
| 683 | | |
|---|
| 684 | | DROP TABLE IF EXISTS `permissions`; |
|---|
| 685 | | CREATE TABLE `permissions` ( |
|---|
| 686 | | `id` int(10) unsigned NOT NULL auto_increment, |
|---|
| 687 | | `name` varchar(50) NOT NULL default '', |
|---|
| 688 | | `created` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| 689 | | `modified` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| 690 | | PRIMARY KEY (`id`), |
|---|
| 691 | | UNIQUE KEY `name` (`name`) |
|---|
| 692 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| | 800 | (14, 'Manage Videos', '/admin/videos', 6, 'admin-videos', 12, 1, 900), |
|---|
| | 801 | (15, 'Videos', '/videos', 4, '', 0, 1, 0), |
|---|
| | 802 | (16, 'Manage Menus', '/admin/menus', 8, 'admin-menus', 12, 1, 900), |
|---|
| | 803 | (17, 'Add Post', '/admin/posts/add', 11, '', 4, 1, 900), |
|---|
| | 804 | (18, 'Add Page', '/admin/pages/add', 12, '', 5, 1, 900), |
|---|
| | 805 | (19, 'Add Event', '/admin/events/add', 13, '', 6, 1, 900), |
|---|
| | 806 | (20, 'Add Feed', '/admin/feeds/add', 14, '', 7, 1, 900), |
|---|
| | 807 | (21, 'Add User', '/admin/users/add', 15, '', 8, 1, 900), |
|---|
| | 808 | (22, 'Upload Image', '/admin/images/upload', 16, '', 9, 1, 900), |
|---|
| | 809 | (23, 'Add Gallery', '/admin/galleries/add', 17, '', 11, 1, 900), |
|---|
| | 810 | (24, 'Upload Video', '/admin/videos/add', 18, '', 14, 1, 900), |
|---|
| | 811 | (25, 'Add Menu', '/admin/menus/add', 19, '', 16, 1, 900), |
|---|
| | 812 | (26, 'Edit Video Options', '/admin/configs/video', 1, '', 10, 1, 999), |
|---|
| | 813 | (27, 'Edit Site Options', '/admin/configs/edit', 0, '', 10, 1, 999); |
|---|
| 699 | | (1, '*', '2007-03-26 00:00:00', '0000-00-00 00:00:00'); |
|---|
| 700 | | |
|---|
| 701 | | -- -------------------------------------------------------- |
|---|
| 702 | | |
|---|
| 703 | | -- |
|---|
| 704 | | -- Table structure for table `posts` |
|---|
| 705 | | -- |
|---|
| 706 | | |
|---|
| 707 | | DROP TABLE IF EXISTS `posts`; |
|---|
| 708 | | CREATE TABLE `posts` ( |
|---|
| 709 | | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| 710 | | `title` varchar(150) NOT NULL, |
|---|
| 711 | | `byline` varchar(255) NOT NULL, |
|---|
| 712 | | `body` text NOT NULL, |
|---|
| 713 | | `user_id` int(8) unsigned NOT NULL, |
|---|
| 714 | | `subject_id` int(8) unsigned NOT NULL, |
|---|
| 715 | | `copyright_id` int(8) unsigned NOT NULL default '1', |
|---|
| 716 | | `url` varchar(200) NOT NULL, |
|---|
| 717 | | `published` tinyint(1) NOT NULL default '0', |
|---|
| 718 | | `created` datetime NOT NULL, |
|---|
| 719 | | `modified` datetime NOT NULL, |
|---|
| 720 | | PRIMARY KEY (`id`) |
|---|
| 721 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| 722 | | |
|---|
| 723 | | -- |
|---|
| 724 | | -- Dumping data for table `posts` |
|---|
| 725 | | -- |
|---|
| 726 | | |
|---|
| 727 | | INSERT INTO `posts` (`id`, `title`, `byline`, `body`, `user_id`, `subject_id`, `copyright_id`, `url`, `published`, `created`, `modified`) VALUES |
|---|
| 728 | | (1, 'Welcome to Webrocket', 'A new CMS built on CakePHP & jQuery', '<p><img src="../../../files/Image/Group3w600.medium.jpg" border="0" alt="Rocket" align="left" />Welcome to Webrocket! Webrocket is a new Content Management System (CMS) built upon the framework of <a href="http://cakephp.org">CakePHP</a> , and AJAX-powered with <a href="http://jquery.com">jQuery</a> .</p><p>CakePHP aims to be a powerful CMS that provides:</p><ul><li>A fully featured Custom Content System, allows you to define how your content types are stored and displayed.</li><li>Output available in many API's - HTML + hAtom, RSS, JSON, REST, XML + XSL .</li><li>AJAX powered by jQuery, provides work-flow improvements, as well as "fancy" effects.</li><li>Template system that uses widgets to define where content sits (Easy Drag & Drop interface)</li><li>Admin system that is available on any page for rapid creation and editing of documents.</li><li>Asset Management for Images, Media and Documents. Allow upload, viewing and download of files.</li><li>Plugins to provide E-Commerce, Forums, Maps, Site Tracking.<br /></li><li>WYSIWYG editing interface with a customised TinyMCE. </li><li>100% Open Source<br /></li></ul>', 1, 1, 1, 'welcome_to_webrocket', 1, '2007-04-20 23:14:31', '2007-04-24 16:18:51'); |
|---|
| 729 | | |
|---|
| 730 | | -- -------------------------------------------------------- |
|---|
| 731 | | |
|---|
| 732 | | -- |
|---|
| 733 | | -- Table structure for table `profiles` |
|---|
| 734 | | -- |
|---|
| 735 | | |
|---|
| 736 | | DROP TABLE IF EXISTS `profiles`; |
|---|
| 737 | | CREATE TABLE `profiles` ( |
|---|
| 738 | | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| 739 | | `user_id` int(8) unsigned NOT NULL, |
|---|
| 740 | | `country` varchar(2) NOT NULL, |
|---|
| 741 | | `dob` date NOT NULL, |
|---|
| 742 | | `homepage` varchar(150) NOT NULL, |
|---|
| 743 | | `image` varchar(150) NOT NULL, |
|---|
| 744 | | `created` datetime NOT NULL, |
|---|
| 745 | | `modified` datetime NOT NULL, |
|---|
| 746 | | PRIMARY KEY (`id`) |
|---|
| 747 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| 748 | | |
|---|
| 749 | | -- |
|---|
| 750 | | -- Dumping data for table `profiles` |
|---|
| 751 | | -- |
|---|
| 752 | | |
|---|
| 753 | | |
|---|
| 754 | | -- -------------------------------------------------------- |
|---|
| 755 | | |
|---|
| 756 | | -- |
|---|
| 757 | | -- Table structure for table `sections` |
|---|
| 758 | | -- |
|---|
| 759 | | |
|---|
| 760 | | DROP TABLE IF EXISTS `sections`; |
|---|
| 761 | | CREATE TABLE `sections` ( |
|---|
| 762 | | `id` int(8) unsigned NOT NULL auto_increment, |
|---|
| 763 | | `name` varchar(50) NOT NULL, |
|---|
| 764 | | PRIMARY KEY (`id`) |
|---|
| 765 | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|---|
| | 820 | (1, '*', '2007-03-26 00:00:00', '0000-00-00 00:00:00'), |
|---|
| | 821 | (2, 'posts', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), |
|---|
| | 822 | (3, 'pages', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), |
|---|
| | 823 | (4, 'videos', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), |
|---|
| | 824 | (5, 'images', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), |
|---|
| | 825 | (6, 'menus', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), |
|---|
| | 826 | (7, 'events', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), |
|---|
| | 827 | (8, 'users', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), |
|---|
| | 828 | (9, 'feeds', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), |
|---|
| | 829 | (10, 'galleries', '0000-00-00 00:00:00', '0000-00-00 00:00:00'); |
|---|