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