1 | -- MySQL dump 8.21 |
---|
2 | -- |
---|
3 | -- Host: localhost Database: perfs_test |
---|
4 | --------------------------------------------------------- |
---|
5 | -- Server version 3.23.49-log |
---|
6 | |
---|
7 | -- |
---|
8 | -- Table structure for table 'phpwebgallery_categories' |
---|
9 | -- |
---|
10 | |
---|
11 | DROP TABLE IF EXISTS phpwebgallery_categories; |
---|
12 | CREATE TABLE phpwebgallery_categories ( |
---|
13 | id smallint(5) unsigned NOT NULL auto_increment, |
---|
14 | date_last date default NULL, |
---|
15 | nb_images mediumint(8) unsigned NOT NULL default '0', |
---|
16 | name varchar(255) NOT NULL default '', |
---|
17 | id_uppercat smallint(5) unsigned default NULL, |
---|
18 | comment text, |
---|
19 | dir varchar(255) default NULL, |
---|
20 | rank tinyint(3) unsigned default NULL, |
---|
21 | status enum('public','private') NOT NULL default 'public', |
---|
22 | site_id tinyint(4) unsigned NOT NULL default '1', |
---|
23 | visible enum('true','false') NOT NULL default 'true', |
---|
24 | uploadable enum('true','false') NOT NULL default 'false', |
---|
25 | representative_picture_id mediumint(8) unsigned default NULL, |
---|
26 | uppercats varchar(255) NOT NULL default '', |
---|
27 | PRIMARY KEY (id), |
---|
28 | KEY id (id), |
---|
29 | KEY id_uppercat (id_uppercat) |
---|
30 | ) TYPE=MyISAM; |
---|
31 | |
---|
32 | -- |
---|
33 | -- Table structure for table 'phpwebgallery_comments' |
---|
34 | -- |
---|
35 | |
---|
36 | DROP TABLE IF EXISTS phpwebgallery_comments; |
---|
37 | CREATE TABLE phpwebgallery_comments ( |
---|
38 | id int(11) unsigned NOT NULL auto_increment, |
---|
39 | image_id mediumint(8) unsigned NOT NULL default '0', |
---|
40 | date int(11) unsigned NOT NULL default '0', |
---|
41 | author varchar(255) default NULL, |
---|
42 | content longtext, |
---|
43 | validated enum('true','false') NOT NULL default 'false', |
---|
44 | PRIMARY KEY (id) |
---|
45 | ) TYPE=MyISAM; |
---|
46 | |
---|
47 | -- |
---|
48 | -- Table structure for table 'phpwebgallery_config' |
---|
49 | -- |
---|
50 | |
---|
51 | DROP TABLE IF EXISTS phpwebgallery_config; |
---|
52 | CREATE TABLE phpwebgallery_config ( |
---|
53 | prefix_thumbnail varchar(10) default 'TN-', |
---|
54 | webmaster varchar(255) NOT NULL default '', |
---|
55 | mail_webmaster varchar(255) NOT NULL default '', |
---|
56 | access enum('free','restricted') default 'free', |
---|
57 | session_id_size tinyint(3) unsigned NOT NULL default '4', |
---|
58 | session_keyword varchar(255) default NULL, |
---|
59 | session_time tinyint(3) unsigned NOT NULL default '30', |
---|
60 | max_user_listbox tinyint(3) unsigned NOT NULL default '10', |
---|
61 | show_comments enum('true','false') NOT NULL default 'true', |
---|
62 | nb_comment_page tinyint(4) NOT NULL default '10', |
---|
63 | upload_available enum('true','false') NOT NULL default 'false', |
---|
64 | upload_maxfilesize smallint(5) unsigned NOT NULL default '150', |
---|
65 | upload_maxwidth smallint(5) unsigned NOT NULL default '800', |
---|
66 | upload_maxheight smallint(5) unsigned NOT NULL default '600', |
---|
67 | upload_maxwidth_thumbnail smallint(5) unsigned NOT NULL default '150', |
---|
68 | upload_maxheight_thumbnail smallint(5) unsigned NOT NULL default '100', |
---|
69 | log enum('true','false') NOT NULL default 'false', |
---|
70 | comments_validation enum('true','false') NOT NULL default 'false', |
---|
71 | comments_forall enum('true','false') NOT NULL default 'false', |
---|
72 | authorize_cookies enum('true','false') NOT NULL default 'false', |
---|
73 | mail_notification enum('true','false') NOT NULL default 'false' |
---|
74 | ) TYPE=MyISAM; |
---|
75 | |
---|
76 | -- |
---|
77 | -- Table structure for table 'phpwebgallery_favorites' |
---|
78 | -- |
---|
79 | |
---|
80 | DROP TABLE IF EXISTS phpwebgallery_favorites; |
---|
81 | CREATE TABLE phpwebgallery_favorites ( |
---|
82 | user_id smallint(5) unsigned NOT NULL default '0', |
---|
83 | image_id mediumint(8) unsigned NOT NULL default '0', |
---|
84 | KEY user_id (user_id,image_id) |
---|
85 | ) TYPE=MyISAM; |
---|
86 | |
---|
87 | -- |
---|
88 | -- Table structure for table 'phpwebgallery_group_access' |
---|
89 | -- |
---|
90 | |
---|
91 | DROP TABLE IF EXISTS phpwebgallery_group_access; |
---|
92 | CREATE TABLE phpwebgallery_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 'phpwebgallery_groups' |
---|
100 | -- |
---|
101 | |
---|
102 | DROP TABLE IF EXISTS phpwebgallery_groups; |
---|
103 | CREATE TABLE phpwebgallery_groups ( |
---|
104 | id smallint(5) unsigned NOT NULL auto_increment, |
---|
105 | name varchar(255) NOT NULL default '', |
---|
106 | PRIMARY KEY (id) |
---|
107 | ) TYPE=MyISAM; |
---|
108 | |
---|
109 | -- |
---|
110 | -- Table structure for table 'phpwebgallery_history' |
---|
111 | -- |
---|
112 | |
---|
113 | DROP TABLE IF EXISTS phpwebgallery_history; |
---|
114 | CREATE TABLE phpwebgallery_history ( |
---|
115 | date int(11) NOT NULL default '0', |
---|
116 | login varchar(15) default NULL, |
---|
117 | IP varchar(50) NOT NULL default '', |
---|
118 | category varchar(150) default NULL, |
---|
119 | file varchar(50) default NULL, |
---|
120 | picture varchar(150) default NULL |
---|
121 | ) TYPE=MyISAM; |
---|
122 | |
---|
123 | -- |
---|
124 | -- Table structure for table 'phpwebgallery_image_category' |
---|
125 | -- |
---|
126 | |
---|
127 | DROP TABLE IF EXISTS phpwebgallery_image_category; |
---|
128 | CREATE TABLE phpwebgallery_image_category ( |
---|
129 | image_id mediumint(8) unsigned NOT NULL default '0', |
---|
130 | category_id smallint(5) unsigned NOT NULL default '0', |
---|
131 | PRIMARY KEY (image_id,category_id), |
---|
132 | KEY category_id (category_id), |
---|
133 | KEY image_id (image_id) |
---|
134 | ) TYPE=MyISAM; |
---|
135 | |
---|
136 | -- |
---|
137 | -- Table structure for table 'phpwebgallery_images' |
---|
138 | -- |
---|
139 | |
---|
140 | DROP TABLE IF EXISTS phpwebgallery_images; |
---|
141 | CREATE TABLE phpwebgallery_images ( |
---|
142 | id mediumint(8) unsigned NOT NULL auto_increment, |
---|
143 | file varchar(255) NOT NULL default '', |
---|
144 | date_available date NOT NULL default '0000-00-00', |
---|
145 | date_creation date default NULL, |
---|
146 | tn_ext char(3) NOT NULL default 'jpg', |
---|
147 | name varchar(255) default NULL, |
---|
148 | comment text, |
---|
149 | author varchar(255) default NULL, |
---|
150 | hit int(10) unsigned NOT NULL default '0', |
---|
151 | filesize mediumint(9) unsigned default NULL, |
---|
152 | width smallint(9) unsigned default NULL, |
---|
153 | height smallint(9) unsigned default NULL, |
---|
154 | keywords varchar(255) default NULL, |
---|
155 | storage_category_id smallint(5) unsigned default NULL, |
---|
156 | PRIMARY KEY (id), |
---|
157 | KEY storage_category_id (storage_category_id) |
---|
158 | ) TYPE=MyISAM; |
---|
159 | |
---|
160 | -- |
---|
161 | -- Table structure for table 'phpwebgallery_sessions' |
---|
162 | -- |
---|
163 | |
---|
164 | DROP TABLE IF EXISTS phpwebgallery_sessions; |
---|
165 | CREATE TABLE phpwebgallery_sessions ( |
---|
166 | id varchar(255) binary NOT NULL default '', |
---|
167 | user_id smallint(5) unsigned NOT NULL default '0', |
---|
168 | expiration int(10) unsigned NOT NULL default '0', |
---|
169 | ip varchar(255) NOT NULL default '', |
---|
170 | PRIMARY KEY (id) |
---|
171 | ) TYPE=MyISAM; |
---|
172 | |
---|
173 | -- |
---|
174 | -- Table structure for table 'phpwebgallery_sites' |
---|
175 | -- |
---|
176 | |
---|
177 | DROP TABLE IF EXISTS phpwebgallery_sites; |
---|
178 | CREATE TABLE phpwebgallery_sites ( |
---|
179 | id tinyint(4) NOT NULL auto_increment, |
---|
180 | galleries_url varchar(255) NOT NULL default '', |
---|
181 | PRIMARY KEY (id), |
---|
182 | UNIQUE KEY galleries_url (galleries_url) |
---|
183 | ) TYPE=MyISAM; |
---|
184 | |
---|
185 | -- |
---|
186 | -- Table structure for table 'phpwebgallery_user_access' |
---|
187 | -- |
---|
188 | |
---|
189 | DROP TABLE IF EXISTS phpwebgallery_user_access; |
---|
190 | CREATE TABLE phpwebgallery_user_access ( |
---|
191 | user_id smallint(5) unsigned NOT NULL default '0', |
---|
192 | cat_id smallint(5) unsigned NOT NULL default '0', |
---|
193 | PRIMARY KEY (user_id,cat_id) |
---|
194 | ) TYPE=MyISAM; |
---|
195 | |
---|
196 | -- |
---|
197 | -- Table structure for table 'phpwebgallery_user_category' |
---|
198 | -- |
---|
199 | |
---|
200 | DROP TABLE IF EXISTS phpwebgallery_user_category; |
---|
201 | CREATE TABLE phpwebgallery_user_category ( |
---|
202 | user_id smallint(5) unsigned NOT NULL default '0', |
---|
203 | category_id smallint(5) unsigned NOT NULL default '0', |
---|
204 | date_last date default NULL, |
---|
205 | nb_sub_categories smallint(5) unsigned NOT NULL default '0', |
---|
206 | PRIMARY KEY (user_id,category_id) |
---|
207 | ) TYPE=MyISAM; |
---|
208 | |
---|
209 | -- |
---|
210 | -- Table structure for table 'phpwebgallery_user_group' |
---|
211 | -- |
---|
212 | |
---|
213 | DROP TABLE IF EXISTS phpwebgallery_user_group; |
---|
214 | CREATE TABLE phpwebgallery_user_group ( |
---|
215 | user_id smallint(5) unsigned NOT NULL default '0', |
---|
216 | group_id smallint(5) unsigned NOT NULL default '0', |
---|
217 | PRIMARY KEY (group_id,user_id) |
---|
218 | ) TYPE=MyISAM; |
---|
219 | |
---|
220 | -- |
---|
221 | -- Table structure for table 'phpwebgallery_users' |
---|
222 | -- |
---|
223 | |
---|
224 | DROP TABLE IF EXISTS phpwebgallery_users; |
---|
225 | CREATE TABLE phpwebgallery_users ( |
---|
226 | id smallint(5) unsigned NOT NULL auto_increment, |
---|
227 | username varchar(20) binary NOT NULL default '', |
---|
228 | password varchar(255) NOT NULL default '', |
---|
229 | mail_address varchar(255) default NULL, |
---|
230 | nb_image_line tinyint(1) unsigned NOT NULL default '5', |
---|
231 | nb_line_page tinyint(3) unsigned NOT NULL default '3', |
---|
232 | status enum('admin','guest') NOT NULL default 'guest', |
---|
233 | language varchar(50) NOT NULL default 'english', |
---|
234 | maxwidth smallint(6) default NULL, |
---|
235 | maxheight smallint(6) default NULL, |
---|
236 | expand enum('true','false') NOT NULL default 'false', |
---|
237 | show_nb_comments enum('true','false') NOT NULL default 'false', |
---|
238 | short_period tinyint(3) unsigned NOT NULL default '7', |
---|
239 | long_period tinyint(3) unsigned NOT NULL default '14', |
---|
240 | template varchar(255) NOT NULL default 'default', |
---|
241 | forbidden_categories text, |
---|
242 | PRIMARY KEY (id), |
---|
243 | UNIQUE KEY username (username) |
---|
244 | ) TYPE=MyISAM; |
---|
245 | |
---|
246 | -- |
---|
247 | -- Table structure for table 'phpwebgallery_waiting' |
---|
248 | -- |
---|
249 | |
---|
250 | DROP TABLE IF EXISTS phpwebgallery_waiting; |
---|
251 | CREATE TABLE phpwebgallery_waiting ( |
---|
252 | id int(10) unsigned NOT NULL auto_increment, |
---|
253 | storage_category_id smallint(5) unsigned NOT NULL default '0', |
---|
254 | file varchar(255) NOT NULL default '', |
---|
255 | username varchar(255) NOT NULL default '', |
---|
256 | mail_address varchar(255) NOT NULL default '', |
---|
257 | date int(10) unsigned NOT NULL default '0', |
---|
258 | tn_ext char(3) default NULL, |
---|
259 | validated enum('true','false') NOT NULL default 'false', |
---|
260 | infos text, |
---|
261 | PRIMARY KEY (id) |
---|
262 | ) TYPE=MyISAM; |
---|
263 | |
---|