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