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