| 1 | -- MySQL dump 9.11 |
|---|
| 2 | -- |
|---|
| 3 | -- Host: localhost Database: pwg-bsf |
|---|
| 4 | -- ------------------------------------------------------ |
|---|
| 5 | -- Server version 4.0.24_Debian-10-log |
|---|
| 6 | |
|---|
| 7 | -- |
|---|
| 8 | -- Table structure for table `piwigo_caddie` |
|---|
| 9 | -- |
|---|
| 10 | |
|---|
| 11 | DROP TABLE IF EXISTS `piwigo_caddie`; |
|---|
| 12 | CREATE TABLE `piwigo_caddie` ( |
|---|
| 13 | `user_id` smallint(5) NOT NULL default '0', |
|---|
| 14 | `element_id` mediumint(8) NOT NULL default '0', |
|---|
| 15 | PRIMARY KEY (`user_id`,`element_id`) |
|---|
| 16 | ) ENGINE=MyISAM; |
|---|
| 17 | |
|---|
| 18 | -- |
|---|
| 19 | -- Table structure for table `piwigo_categories` |
|---|
| 20 | -- |
|---|
| 21 | |
|---|
| 22 | DROP TABLE IF EXISTS `piwigo_categories`; |
|---|
| 23 | CREATE TABLE `piwigo_categories` ( |
|---|
| 24 | `id` smallint(5) unsigned NOT NULL auto_increment, |
|---|
| 25 | `name` varchar(255) NOT NULL default '', |
|---|
| 26 | `id_uppercat` smallint(5) unsigned default NULL, |
|---|
| 27 | `comment` text, |
|---|
| 28 | `dir` varchar(255) default NULL, |
|---|
| 29 | `rank` smallint(5) unsigned default NULL, |
|---|
| 30 | `status` enum('public','private') NOT NULL default 'public', |
|---|
| 31 | `site_id` tinyint(4) unsigned default '1', |
|---|
| 32 | `visible` enum('true','false') NOT NULL default 'true', |
|---|
| 33 | `representative_picture_id` mediumint(8) unsigned default NULL, |
|---|
| 34 | `uppercats` varchar(255) NOT NULL default '', |
|---|
| 35 | `commentable` enum('true','false') NOT NULL default 'true', |
|---|
| 36 | `global_rank` varchar(255) default NULL, |
|---|
| 37 | `image_order` varchar(128) default NULL, |
|---|
| 38 | `permalink` varchar(64) binary default NULL, |
|---|
| 39 | PRIMARY KEY (`id`), |
|---|
| 40 | UNIQUE KEY `categories_i3` (`permalink`), |
|---|
| 41 | KEY `categories_i2` (`id_uppercat`) |
|---|
| 42 | ) ENGINE=MyISAM; |
|---|
| 43 | |
|---|
| 44 | -- |
|---|
| 45 | -- Table structure for table `piwigo_comments` |
|---|
| 46 | -- |
|---|
| 47 | |
|---|
| 48 | DROP TABLE IF EXISTS `piwigo_comments`; |
|---|
| 49 | CREATE TABLE `piwigo_comments` ( |
|---|
| 50 | `id` int(11) unsigned NOT NULL auto_increment, |
|---|
| 51 | `image_id` mediumint(8) unsigned NOT NULL default '0', |
|---|
| 52 | `date` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| 53 | `author` varchar(255) default NULL, |
|---|
| 54 | `author_id` smallint(5) DEFAULT NULL, |
|---|
| 55 | `content` longtext, |
|---|
| 56 | `validated` enum('true','false') NOT NULL default 'false', |
|---|
| 57 | `validation_date` datetime default NULL, |
|---|
| 58 | PRIMARY KEY (`id`), |
|---|
| 59 | KEY `comments_i2` (`validation_date`), |
|---|
| 60 | KEY `comments_i1` (`image_id`) |
|---|
| 61 | ) ENGINE=MyISAM; |
|---|
| 62 | |
|---|
| 63 | -- |
|---|
| 64 | -- Table structure for table `piwigo_config` |
|---|
| 65 | -- |
|---|
| 66 | |
|---|
| 67 | DROP TABLE IF EXISTS `piwigo_config`; |
|---|
| 68 | CREATE TABLE `piwigo_config` ( |
|---|
| 69 | `param` varchar(40) NOT NULL default '', |
|---|
| 70 | `value` text, |
|---|
| 71 | `comment` varchar(255) default NULL, |
|---|
| 72 | PRIMARY KEY (`param`) |
|---|
| 73 | ) ENGINE=MyISAM COMMENT='configuration table'; |
|---|
| 74 | |
|---|
| 75 | -- |
|---|
| 76 | -- Table structure for table `piwigo_favorites` |
|---|
| 77 | -- |
|---|
| 78 | |
|---|
| 79 | DROP TABLE IF EXISTS `piwigo_favorites`; |
|---|
| 80 | CREATE TABLE `piwigo_favorites` ( |
|---|
| 81 | `user_id` smallint(5) NOT NULL default '0', |
|---|
| 82 | `image_id` mediumint(8) unsigned NOT NULL default '0', |
|---|
| 83 | PRIMARY KEY (`user_id`,`image_id`) |
|---|
| 84 | ) ENGINE=MyISAM; |
|---|
| 85 | |
|---|
| 86 | -- |
|---|
| 87 | -- Table structure for table `piwigo_group_access` |
|---|
| 88 | -- |
|---|
| 89 | |
|---|
| 90 | DROP TABLE IF EXISTS `piwigo_group_access`; |
|---|
| 91 | CREATE TABLE `piwigo_group_access` ( |
|---|
| 92 | `group_id` smallint(5) unsigned NOT NULL default '0', |
|---|
| 93 | `cat_id` smallint(5) unsigned NOT NULL default '0', |
|---|
| 94 | PRIMARY KEY (`group_id`,`cat_id`) |
|---|
| 95 | ) ENGINE=MyISAM; |
|---|
| 96 | |
|---|
| 97 | -- |
|---|
| 98 | -- Table structure for table `piwigo_groups` |
|---|
| 99 | -- |
|---|
| 100 | |
|---|
| 101 | DROP TABLE IF EXISTS `piwigo_groups`; |
|---|
| 102 | CREATE TABLE `piwigo_groups` ( |
|---|
| 103 | `id` smallint(5) unsigned NOT NULL auto_increment, |
|---|
| 104 | `name` varchar(255) NOT NULL default '', |
|---|
| 105 | `is_default` enum('true','false') NOT NULL default 'false', |
|---|
| 106 | PRIMARY KEY (`id`), |
|---|
| 107 | UNIQUE KEY `groups_ui1` (`name`) |
|---|
| 108 | ) ENGINE=MyISAM; |
|---|
| 109 | |
|---|
| 110 | -- |
|---|
| 111 | -- Table structure for table `piwigo_history` |
|---|
| 112 | -- |
|---|
| 113 | |
|---|
| 114 | DROP TABLE IF EXISTS `piwigo_history`; |
|---|
| 115 | CREATE TABLE `piwigo_history` ( |
|---|
| 116 | `id` int(10) unsigned NOT NULL auto_increment, |
|---|
| 117 | `date` date NOT NULL default '0000-00-00', |
|---|
| 118 | `time` time NOT NULL default '00:00:00', |
|---|
| 119 | `user_id` smallint(5) NOT NULL default '0', |
|---|
| 120 | `IP` varchar(15) NOT NULL default '', |
|---|
| 121 | `section` enum('categories','tags','search','list','favorites','most_visited','best_rated','recent_pics','recent_cats') default NULL, |
|---|
| 122 | `category_id` smallint(5) default NULL, |
|---|
| 123 | `tag_ids` varchar(50) default NULL, |
|---|
| 124 | `image_id` mediumint(8) default NULL, |
|---|
| 125 | `summarized` enum('true','false') default 'false', |
|---|
| 126 | `image_type` enum('picture','high','other') default NULL, |
|---|
| 127 | PRIMARY KEY (`id`), |
|---|
| 128 | KEY `history_i1` (`summarized`) |
|---|
| 129 | ) ENGINE=MyISAM; |
|---|
| 130 | |
|---|
| 131 | -- |
|---|
| 132 | -- Table structure for table `piwigo_history_summary` |
|---|
| 133 | -- |
|---|
| 134 | |
|---|
| 135 | DROP TABLE IF EXISTS `piwigo_history_summary`; |
|---|
| 136 | CREATE TABLE `piwigo_history_summary` ( |
|---|
| 137 | `year` smallint(4) NOT NULL default '0', |
|---|
| 138 | `month` tinyint(2) default NULL, |
|---|
| 139 | `day` tinyint(2) default NULL, |
|---|
| 140 | `hour` tinyint(2) default NULL, |
|---|
| 141 | `nb_pages` int(11) default NULL, |
|---|
| 142 | UNIQUE KEY history_summary_ymdh (`year`,`month`,`day`,`hour`) |
|---|
| 143 | ) ENGINE=MyISAM; |
|---|
| 144 | |
|---|
| 145 | -- |
|---|
| 146 | -- Table structure for table `piwigo_image_category` |
|---|
| 147 | -- |
|---|
| 148 | |
|---|
| 149 | DROP TABLE IF EXISTS `piwigo_image_category`; |
|---|
| 150 | CREATE TABLE `piwigo_image_category` ( |
|---|
| 151 | `image_id` mediumint(8) unsigned NOT NULL default '0', |
|---|
| 152 | `category_id` smallint(5) unsigned NOT NULL default '0', |
|---|
| 153 | `rank` mediumint(8) unsigned default NULL, |
|---|
| 154 | PRIMARY KEY (`image_id`,`category_id`), |
|---|
| 155 | KEY `image_category_i1` (`category_id`) |
|---|
| 156 | ) ENGINE=MyISAM; |
|---|
| 157 | |
|---|
| 158 | -- |
|---|
| 159 | -- Table structure for table `piwigo_image_tag` |
|---|
| 160 | -- |
|---|
| 161 | |
|---|
| 162 | DROP TABLE IF EXISTS `piwigo_image_tag`; |
|---|
| 163 | CREATE TABLE `piwigo_image_tag` ( |
|---|
| 164 | `image_id` mediumint(8) unsigned NOT NULL default '0', |
|---|
| 165 | `tag_id` smallint(5) unsigned NOT NULL default '0', |
|---|
| 166 | PRIMARY KEY (`image_id`,`tag_id`), |
|---|
| 167 | KEY `image_tag_i1` (`tag_id`) |
|---|
| 168 | ) ENGINE=MyISAM; |
|---|
| 169 | |
|---|
| 170 | -- |
|---|
| 171 | -- Table structure for table `piwigo_images` |
|---|
| 172 | -- |
|---|
| 173 | |
|---|
| 174 | DROP TABLE IF EXISTS `piwigo_images`; |
|---|
| 175 | CREATE TABLE `piwigo_images` ( |
|---|
| 176 | `id` mediumint(8) unsigned NOT NULL auto_increment, |
|---|
| 177 | `file` varchar(255) binary NOT NULL default '', |
|---|
| 178 | `date_available` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| 179 | `date_creation` datetime default NULL, |
|---|
| 180 | `tn_ext` varchar(4) default '', |
|---|
| 181 | `name` varchar(255) default NULL, |
|---|
| 182 | `comment` text, |
|---|
| 183 | `author` varchar(255) default NULL, |
|---|
| 184 | `hit` int(10) unsigned NOT NULL default '0', |
|---|
| 185 | `filesize` mediumint(9) unsigned default NULL, |
|---|
| 186 | `width` smallint(9) unsigned default NULL, |
|---|
| 187 | `height` smallint(9) unsigned default NULL, |
|---|
| 188 | `representative_ext` varchar(4) default NULL, |
|---|
| 189 | `date_metadata_update` date default NULL, |
|---|
| 190 | `rating_score` float(5,2) unsigned default NULL, |
|---|
| 191 | `has_high` enum('true') default NULL, |
|---|
| 192 | `path` varchar(255) NOT NULL default '', |
|---|
| 193 | `storage_category_id` smallint(5) unsigned default NULL, |
|---|
| 194 | `high_filesize` mediumint(9) unsigned default NULL, |
|---|
| 195 | `high_width` smallint(9) unsigned default NULL, |
|---|
| 196 | `high_height` smallint(9) unsigned default NULL, |
|---|
| 197 | `level` tinyint unsigned NOT NULL default '0', |
|---|
| 198 | `md5sum` char(32) default NULL, |
|---|
| 199 | `added_by` smallint(5) NOT NULL default '0', |
|---|
| 200 | PRIMARY KEY (`id`), |
|---|
| 201 | KEY `images_i2` (`date_available`), |
|---|
| 202 | KEY `images_i3` (`rating_score`), |
|---|
| 203 | KEY `images_i4` (`hit`), |
|---|
| 204 | KEY `images_i5` (`date_creation`), |
|---|
| 205 | KEY `images_i1` (`storage_category_id`) |
|---|
| 206 | ) ENGINE=MyISAM; |
|---|
| 207 | |
|---|
| 208 | -- |
|---|
| 209 | -- Table structure for table `piwigo_languages` |
|---|
| 210 | -- |
|---|
| 211 | |
|---|
| 212 | DROP TABLE IF EXISTS `piwigo_languages`; |
|---|
| 213 | CREATE TABLE `piwigo_languages` ( |
|---|
| 214 | `id` varchar(64) NOT NULL default '', |
|---|
| 215 | `version` varchar(64) NOT NULL default '0', |
|---|
| 216 | `name` varchar(64) default NULL, |
|---|
| 217 | PRIMARY KEY (`id`) |
|---|
| 218 | ) ENGINE=MyISAM; |
|---|
| 219 | |
|---|
| 220 | -- |
|---|
| 221 | -- Table structure for table `piwigo_old_permalinks` |
|---|
| 222 | -- |
|---|
| 223 | |
|---|
| 224 | DROP TABLE IF EXISTS `piwigo_old_permalinks`; |
|---|
| 225 | CREATE TABLE `piwigo_old_permalinks` ( |
|---|
| 226 | `cat_id` smallint(5) unsigned NOT NULL default '0', |
|---|
| 227 | `permalink` varchar(64) binary NOT NULL default '', |
|---|
| 228 | `date_deleted` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| 229 | `last_hit` datetime default NULL, |
|---|
| 230 | `hit` int(10) unsigned NOT NULL default '0', |
|---|
| 231 | PRIMARY KEY (`permalink`) |
|---|
| 232 | ) ENGINE=MyISAM; |
|---|
| 233 | |
|---|
| 234 | -- |
|---|
| 235 | -- Table structure for table `piwigo_plugins` |
|---|
| 236 | -- |
|---|
| 237 | |
|---|
| 238 | DROP TABLE IF EXISTS `piwigo_plugins`; |
|---|
| 239 | CREATE TABLE `piwigo_plugins` ( |
|---|
| 240 | `id` varchar(64) binary NOT NULL default '', |
|---|
| 241 | `state` enum('inactive','active') NOT NULL default 'inactive', |
|---|
| 242 | `version` varchar(64) NOT NULL default '0', |
|---|
| 243 | PRIMARY KEY (`id`) |
|---|
| 244 | ) ENGINE=MyISAM; |
|---|
| 245 | |
|---|
| 246 | -- |
|---|
| 247 | -- Table structure for table `piwigo_rate` |
|---|
| 248 | -- |
|---|
| 249 | |
|---|
| 250 | DROP TABLE IF EXISTS `piwigo_rate`; |
|---|
| 251 | CREATE TABLE `piwigo_rate` ( |
|---|
| 252 | `user_id` smallint(5) NOT NULL default '0', |
|---|
| 253 | `element_id` mediumint(8) unsigned NOT NULL default '0', |
|---|
| 254 | `anonymous_id` varchar(45) NOT NULL default '', |
|---|
| 255 | `rate` tinyint(2) unsigned NOT NULL default '0', |
|---|
| 256 | `date` date NOT NULL default '0000-00-00', |
|---|
| 257 | PRIMARY KEY (`element_id`,`user_id`,`anonymous_id`) |
|---|
| 258 | ) ENGINE=MyISAM; |
|---|
| 259 | |
|---|
| 260 | -- |
|---|
| 261 | -- Table structure for table `piwigo_search` |
|---|
| 262 | -- |
|---|
| 263 | |
|---|
| 264 | DROP TABLE IF EXISTS `piwigo_search`; |
|---|
| 265 | CREATE TABLE `piwigo_search` ( |
|---|
| 266 | `id` int(10) unsigned NOT NULL auto_increment, |
|---|
| 267 | `last_seen` date default NULL, |
|---|
| 268 | `rules` text, |
|---|
| 269 | PRIMARY KEY (`id`) |
|---|
| 270 | ) ENGINE=MyISAM; |
|---|
| 271 | |
|---|
| 272 | -- |
|---|
| 273 | -- Table structure for table `piwigo_sessions` |
|---|
| 274 | -- |
|---|
| 275 | |
|---|
| 276 | DROP TABLE IF EXISTS `piwigo_sessions`; |
|---|
| 277 | CREATE TABLE `piwigo_sessions` ( |
|---|
| 278 | `id` varchar(255) binary NOT NULL default '', |
|---|
| 279 | `data` mediumtext NOT NULL, |
|---|
| 280 | `expiration` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| 281 | PRIMARY KEY (`id`) |
|---|
| 282 | ) ENGINE=MyISAM; |
|---|
| 283 | |
|---|
| 284 | -- |
|---|
| 285 | -- Table structure for table `piwigo_sites` |
|---|
| 286 | -- |
|---|
| 287 | |
|---|
| 288 | DROP TABLE IF EXISTS `piwigo_sites`; |
|---|
| 289 | CREATE TABLE `piwigo_sites` ( |
|---|
| 290 | `id` tinyint(4) NOT NULL auto_increment, |
|---|
| 291 | `galleries_url` varchar(255) NOT NULL default '', |
|---|
| 292 | PRIMARY KEY (`id`), |
|---|
| 293 | UNIQUE KEY `sites_ui1` (`galleries_url`) |
|---|
| 294 | ) ENGINE=MyISAM; |
|---|
| 295 | |
|---|
| 296 | -- |
|---|
| 297 | -- Table structure for table `piwigo_tags` |
|---|
| 298 | -- |
|---|
| 299 | |
|---|
| 300 | DROP TABLE IF EXISTS `piwigo_tags`; |
|---|
| 301 | CREATE TABLE `piwigo_tags` ( |
|---|
| 302 | `id` smallint(5) unsigned NOT NULL auto_increment, |
|---|
| 303 | `name` varchar(255) binary NOT NULL default '', |
|---|
| 304 | `url_name` varchar(255) binary NOT NULL default '', |
|---|
| 305 | PRIMARY KEY (`id`), |
|---|
| 306 | KEY `tags_i1` (`url_name`) |
|---|
| 307 | ) ENGINE=MyISAM; |
|---|
| 308 | |
|---|
| 309 | -- |
|---|
| 310 | -- Table structure for table `piwigo_themes` |
|---|
| 311 | -- |
|---|
| 312 | |
|---|
| 313 | DROP TABLE IF EXISTS `piwigo_themes`; |
|---|
| 314 | CREATE TABLE `piwigo_themes` ( |
|---|
| 315 | `id` varchar(64) NOT NULL default '', |
|---|
| 316 | `version` varchar(64) NOT NULL default '0', |
|---|
| 317 | `name` varchar(64) default NULL, |
|---|
| 318 | PRIMARY KEY (`id`) |
|---|
| 319 | ) ENGINE=MyISAM; |
|---|
| 320 | |
|---|
| 321 | -- |
|---|
| 322 | -- Table structure for table `piwigo_upgrade` |
|---|
| 323 | -- |
|---|
| 324 | |
|---|
| 325 | DROP TABLE IF EXISTS `piwigo_upgrade`; |
|---|
| 326 | CREATE TABLE `piwigo_upgrade` ( |
|---|
| 327 | `id` varchar(20) NOT NULL default '', |
|---|
| 328 | `applied` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| 329 | `description` varchar(255) default NULL, |
|---|
| 330 | PRIMARY KEY (`id`) |
|---|
| 331 | ) ENGINE=MyISAM; |
|---|
| 332 | |
|---|
| 333 | -- |
|---|
| 334 | -- Table structure for table `piwigo_user_access` |
|---|
| 335 | -- |
|---|
| 336 | |
|---|
| 337 | DROP TABLE IF EXISTS `piwigo_user_access`; |
|---|
| 338 | CREATE TABLE `piwigo_user_access` ( |
|---|
| 339 | `user_id` smallint(5) NOT NULL default '0', |
|---|
| 340 | `cat_id` smallint(5) unsigned NOT NULL default '0', |
|---|
| 341 | PRIMARY KEY (`user_id`,`cat_id`) |
|---|
| 342 | ) ENGINE=MyISAM; |
|---|
| 343 | |
|---|
| 344 | -- |
|---|
| 345 | -- Table structure for table `piwigo_user_cache` |
|---|
| 346 | -- |
|---|
| 347 | |
|---|
| 348 | DROP TABLE IF EXISTS `piwigo_user_cache`; |
|---|
| 349 | CREATE TABLE `piwigo_user_cache` ( |
|---|
| 350 | `user_id` smallint(5) NOT NULL default '0', |
|---|
| 351 | `need_update` enum('true','false') NOT NULL default 'true', |
|---|
| 352 | `cache_update_time` integer unsigned NOT NULL default 0, |
|---|
| 353 | `forbidden_categories` mediumtext, |
|---|
| 354 | `nb_total_images` mediumint(8) unsigned default NULL, |
|---|
| 355 | `image_access_type` enum('NOT IN','IN') NOT NULL default 'NOT IN', |
|---|
| 356 | `image_access_list` mediumtext default NULL, |
|---|
| 357 | PRIMARY KEY (`user_id`) |
|---|
| 358 | ) ENGINE=MyISAM; |
|---|
| 359 | |
|---|
| 360 | -- |
|---|
| 361 | -- Table structure for table `piwigo_user_cache_categories` |
|---|
| 362 | -- |
|---|
| 363 | |
|---|
| 364 | DROP TABLE IF EXISTS `piwigo_user_cache_categories`; |
|---|
| 365 | CREATE TABLE `piwigo_user_cache_categories` ( |
|---|
| 366 | `user_id` smallint(5) NOT NULL default '0', |
|---|
| 367 | `cat_id` smallint(5) unsigned NOT NULL default '0', |
|---|
| 368 | `date_last` datetime default NULL, |
|---|
| 369 | `max_date_last` datetime default NULL, |
|---|
| 370 | `nb_images` mediumint(8) unsigned NOT NULL default '0', |
|---|
| 371 | `count_images` mediumint(8) unsigned default '0', |
|---|
| 372 | `count_categories` mediumint(8) unsigned default '0', |
|---|
| 373 | `user_representative_picture_id` mediumint(8) unsigned default NULL, |
|---|
| 374 | PRIMARY KEY (`user_id`,`cat_id`) |
|---|
| 375 | ) ENGINE=MyISAM; |
|---|
| 376 | |
|---|
| 377 | -- |
|---|
| 378 | -- Table structure for table `piwigo_user_feed` |
|---|
| 379 | -- |
|---|
| 380 | |
|---|
| 381 | DROP TABLE IF EXISTS `piwigo_user_feed`; |
|---|
| 382 | CREATE TABLE `piwigo_user_feed` ( |
|---|
| 383 | `id` varchar(50) binary NOT NULL default '', |
|---|
| 384 | `user_id` smallint(5) NOT NULL default '0', |
|---|
| 385 | `last_check` datetime default NULL, |
|---|
| 386 | PRIMARY KEY (`id`) |
|---|
| 387 | ) ENGINE=MyISAM; |
|---|
| 388 | |
|---|
| 389 | -- |
|---|
| 390 | -- Table structure for table `piwigo_user_group` |
|---|
| 391 | -- |
|---|
| 392 | |
|---|
| 393 | DROP TABLE IF EXISTS `piwigo_user_group`; |
|---|
| 394 | CREATE TABLE `piwigo_user_group` ( |
|---|
| 395 | `user_id` smallint(5) NOT NULL default '0', |
|---|
| 396 | `group_id` smallint(5) unsigned NOT NULL default '0', |
|---|
| 397 | PRIMARY KEY (`group_id`,`user_id`) |
|---|
| 398 | ) ENGINE=MyISAM; |
|---|
| 399 | |
|---|
| 400 | -- |
|---|
| 401 | -- Table structure for table `piwigo_user_infos` |
|---|
| 402 | -- |
|---|
| 403 | |
|---|
| 404 | DROP TABLE IF EXISTS `piwigo_user_infos`; |
|---|
| 405 | CREATE TABLE `piwigo_user_infos` ( |
|---|
| 406 | `user_id` smallint(5) NOT NULL default '0', |
|---|
| 407 | `nb_image_page` smallint(3) unsigned NOT NULL default '15', |
|---|
| 408 | `status` enum('webmaster','admin','normal','generic','guest') NOT NULL default 'guest', |
|---|
| 409 | `language` varchar(50) NOT NULL default 'en_UK', |
|---|
| 410 | `maxwidth` smallint(6) default NULL, |
|---|
| 411 | `maxheight` smallint(6) default NULL, |
|---|
| 412 | `expand` enum('true','false') NOT NULL default 'false', |
|---|
| 413 | `show_nb_comments` enum('true','false') NOT NULL default 'false', |
|---|
| 414 | `show_nb_hits` enum('true','false') NOT NULL default 'false', |
|---|
| 415 | `recent_period` tinyint(3) unsigned NOT NULL default '7', |
|---|
| 416 | `theme` varchar(255) NOT NULL default 'Sylvia', |
|---|
| 417 | `registration_date` datetime NOT NULL default '0000-00-00 00:00:00', |
|---|
| 418 | `enabled_high` enum('true','false') NOT NULL default 'true', |
|---|
| 419 | `level` tinyint unsigned NOT NULL default '0', |
|---|
| 420 | `activation_key` char(20) default NULL, |
|---|
| 421 | UNIQUE KEY `user_infos_ui1` (`user_id`) |
|---|
| 422 | ) ENGINE=MyISAM; |
|---|
| 423 | |
|---|
| 424 | -- |
|---|
| 425 | -- Table structure for table `piwigo_user_mail_notification` |
|---|
| 426 | -- |
|---|
| 427 | |
|---|
| 428 | DROP TABLE IF EXISTS `piwigo_user_mail_notification`; |
|---|
| 429 | CREATE TABLE `piwigo_user_mail_notification` ( |
|---|
| 430 | `user_id` smallint(5) NOT NULL default '0', |
|---|
| 431 | `check_key` varchar(16) binary NOT NULL default '', |
|---|
| 432 | `enabled` enum('true','false') NOT NULL default 'false', |
|---|
| 433 | `last_send` datetime default NULL, |
|---|
| 434 | PRIMARY KEY (`user_id`), |
|---|
| 435 | UNIQUE KEY `user_mail_notification_ui1` (`check_key`) |
|---|
| 436 | ) ENGINE=MyISAM; |
|---|
| 437 | |
|---|
| 438 | -- |
|---|
| 439 | -- Table structure for table `piwigo_users` |
|---|
| 440 | -- |
|---|
| 441 | |
|---|
| 442 | DROP TABLE IF EXISTS `piwigo_users`; |
|---|
| 443 | CREATE TABLE `piwigo_users` ( |
|---|
| 444 | `id` smallint(5) NOT NULL auto_increment, |
|---|
| 445 | `username` varchar(100) binary NOT NULL default '', |
|---|
| 446 | `password` varchar(32) default NULL, |
|---|
| 447 | `mail_address` varchar(255) default NULL, |
|---|
| 448 | PRIMARY KEY (`id`), |
|---|
| 449 | UNIQUE KEY `users_ui1` (`username`) |
|---|
| 450 | ) ENGINE=MyISAM; |
|---|