source: branches/rsr.v5.1.dev/web/install/dist/sql/tables.sql @ 3

Last change on this file since 3 was 3, checked in by dj3c1t, 12 years ago

passage a Fluxbb 1.4.7

File size: 17.2 KB
Line 
1CREATE TABLE `[prefix]albums` (
2  `id` int(11) NOT NULL AUTO_INCREMENT,
3  `id_artiste` int(11) NOT NULL,
4  `titre` varchar(255) DEFAULT NULL,
5  `image` varchar(255) NOT NULL,
6  `description` text,
7  `url` varchar(255) DEFAULT NULL,
8  `format` int(11) DEFAULT NULL,
9  `taille` int(11) DEFAULT NULL,
10  `date_creation` date DEFAULT NULL,
11  `date_publication` date DEFAULT NULL,
12  `compteur` int(11) NOT NULL DEFAULT '0',
13  `actif` tinyint(4) NOT NULL DEFAULT '1',
14  `ordre` int(11) NOT NULL DEFAULT '0',
15  PRIMARY KEY (`id`)
16) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
17# --
18CREATE TABLE `[prefix]artistes` (
19  `id` int(11) NOT NULL AUTO_INCREMENT,
20  `nom` varchar(255) DEFAULT NULL,
21  `presentation` text,
22  `style` varchar(255) DEFAULT NULL,
23  `image` varchar(255) DEFAULT NULL,
24  `pays` varchar(255) DEFAULT NULL,
25  `site` varchar(255) DEFAULT NULL,
26  `email_contact` varchar(255) DEFAULT NULL,
27  `hide_email` tinyint(4) NOT NULL DEFAULT '1',
28  `contact_form` tinyint(4) NOT NULL DEFAULT '1',
29  `identifiant_paypal` varchar(255) DEFAULT NULL,
30  `lien_boutique` varchar(255) DEFAULT NULL,
31  `pun_forum` int(11) DEFAULT NULL,
32  `pun_user` int(11) DEFAULT NULL,
33  `compteur` int(11) NOT NULL DEFAULT '0',
34  `lien_facebook` varchar(255) DEFAULT NULL,
35  `lien_flickr` varchar(255) DEFAULT NULL,
36  `lien_twitter` varchar(255) DEFAULT NULL,
37  `lien_youtube` varchar(255) DEFAULT NULL,
38  `dossier_personnel` varchar(255) DEFAULT NULL,
39  PRIMARY KEY (`id`)
40) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
41# --
42CREATE TABLE `[prefix]artistes_admins` (
43  `id_artiste` int(11) NOT NULL,
44  `pun_user` int(11) NOT NULL,
45  PRIMARY KEY (`id_artiste`,`pun_user`)
46) ENGINE=MyISAM DEFAULT CHARSET=utf8;
47# --
48CREATE TABLE `[prefix]boxes` (
49  `id` int(11) NOT NULL AUTO_INCREMENT,
50  `nom` varchar(64) DEFAULT NULL,
51  `emplacement` varchar(255) DEFAULT NULL,
52  `titre` varchar(255) DEFAULT NULL,
53  `fichier` varchar(255) DEFAULT NULL,
54  `contenu` text,
55  `auteur_creation` int(11) DEFAULT NULL,
56  `date_creation` datetime DEFAULT NULL,
57  `auteur_modification` int(11) DEFAULT NULL,
58  `date_modification` datetime DEFAULT NULL,
59  `date_publication` datetime DEFAULT NULL,
60  `public` tinyint(4) DEFAULT NULL,
61  `ordre` int(11) DEFAULT NULL,
62  PRIMARY KEY (`id`)
63) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=162 ;
64# --
65CREATE TABLE `[prefix]categories` (
66  `id` int(11) NOT NULL AUTO_INCREMENT,
67  `nom` varchar(64) DEFAULT NULL,
68  `titre` varchar(255) DEFAULT NULL,
69  `icone` varchar(255) DEFAULT NULL,
70  `description` text,
71  `contenu` text,
72  `ordre` int(11) NOT NULL DEFAULT '0',
73  PRIMARY KEY (`id`)
74) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=103 ;
75# --
76CREATE TABLE `[prefix]categories_tree` (
77  `parent` int(11) NOT NULL,
78  `child` int(11) NOT NULL,
79  PRIMARY KEY (`parent`,`child`)
80) ENGINE=MyISAM DEFAULT CHARSET=utf8;
81# --
82CREATE TABLE `[prefix]concerts` (
83  `id` int(11) NOT NULL AUTO_INCREMENT,
84  `id_artiste` int(11) DEFAULT NULL,
85  `nom` varchar(255) DEFAULT NULL,
86  `date` datetime DEFAULT NULL,
87  `lieu` varchar(255) DEFAULT NULL,
88  `paf` int(11) DEFAULT NULL,
89  `description` text,
90  `pun_forum` int(11) DEFAULT NULL,
91  `affiche` varchar(255) DEFAULT NULL,
92  `flyer` varchar(255) DEFAULT NULL,
93  PRIMARY KEY (`id`)
94) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
95# --
96CREATE TABLE `[prefix]configuration` (
97  `key` varchar(255) NOT NULL,
98  `value` text NOT NULL,
99  PRIMARY KEY (`key`)
100) ENGINE=MyISAM DEFAULT CHARSET=utf8;
101# --
102CREATE TABLE `[prefix]contenus` (
103  `id` int(11) NOT NULL AUTO_INCREMENT,
104  `nom` varchar(64) DEFAULT NULL,
105  `categorie` int(11) DEFAULT NULL,
106  `titre` varchar(255) DEFAULT NULL,
107  `description` text,
108  `contenu` text,
109  `auteur_creation` int(11) DEFAULT NULL,
110  `date_creation` datetime DEFAULT NULL,
111  `auteur_modification` int(11) DEFAULT NULL,
112  `date_modification` datetime DEFAULT NULL,
113  `date_publication` datetime DEFAULT NULL,
114  `public` tinyint(4) DEFAULT NULL,
115  `ordre` int(11) DEFAULT NULL,
116  PRIMARY KEY (`id`)
117) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=935 ;
118# --
119CREATE TABLE `[prefix]downloads` (
120  `id` int(11) NOT NULL AUTO_INCREMENT,
121  `id_artiste` int(11) DEFAULT NULL,
122  `id_album` int(11) DEFAULT NULL,
123  `id_licence` int(11) DEFAULT NULL,
124  `nom` varchar(255) DEFAULT NULL,
125  `date_creation` date DEFAULT NULL,
126  `style` varchar(255) DEFAULT NULL,
127  `description` text,
128  `ordre` int(11) DEFAULT NULL,
129  `actif` tinyint(4) NOT NULL DEFAULT '1',
130  PRIMARY KEY (`id`)
131) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
132# --
133CREATE TABLE `[prefix]download_urls` (
134  `id` int(11) NOT NULL AUTO_INCREMENT,
135  `id_download` int(11) DEFAULT NULL,
136  `id_format` int(11) DEFAULT NULL,
137  `qualite` int(11) DEFAULT NULL,
138  `url` varchar(255) DEFAULT NULL,
139  `taille` int(11) DEFAULT NULL,
140  `date_publication` date DEFAULT NULL,
141  `compteur` int(11) NOT NULL DEFAULT '0',
142  PRIMARY KEY (`id`)
143) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
144# --
145CREATE TABLE `[prefix]formats` (
146  `id` int(11) NOT NULL AUTO_INCREMENT,
147  `nom` varchar(32) DEFAULT NULL,
148  `content_type` varchar(64) NOT NULL,
149  PRIMARY KEY (`id`)
150) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
151# --
152CREATE TABLE `[prefix]licences` (
153  `id` int(11) NOT NULL AUTO_INCREMENT,
154  `nom` varchar(255) NOT NULL DEFAULT '',
155  `lien` varchar(255) NOT NULL DEFAULT '',
156  `icone` varchar(255) NOT NULL,
157  PRIMARY KEY (`id`)
158) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=17 ;
159# --
160CREATE TABLE `[prefix]playlists` (
161  `id` int(11) NOT NULL AUTO_INCREMENT,
162  `pun_user` int(11) NOT NULL,
163  `titre` varchar(255) NOT NULL,
164  `description` text NOT NULL,
165  `creation` datetime NOT NULL,
166  PRIMARY KEY (`id`)
167) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
168# --
169CREATE TABLE `[prefix]playlist_download` (
170  `id` int(11) NOT NULL,
171  `id_download` int(11) NOT NULL,
172  PRIMARY KEY (`id`,`id_download`)
173) ENGINE=MyISAM DEFAULT CHARSET=utf8;
174# --
175CREATE TABLE `[prefix]pun_bans` (
176  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
177  `username` varchar(200) DEFAULT NULL,
178  `ip` varchar(255) DEFAULT NULL,
179  `email` varchar(80) DEFAULT NULL,
180  `message` varchar(255) DEFAULT NULL,
181  `expire` int(10) unsigned DEFAULT NULL,
182  `ban_creator` int(10) unsigned NOT NULL DEFAULT '0',
183  PRIMARY KEY (`id`),
184  KEY `[prefix]pun_bans_username_idx` (`username`(25))
185) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
186# --
187CREATE TABLE `[prefix]pun_categories` (
188  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
189  `cat_name` varchar(80) NOT NULL DEFAULT 'New Category',
190  `disp_position` int(10) NOT NULL DEFAULT '0',
191  PRIMARY KEY (`id`)
192) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ;
193# --
194CREATE TABLE `[prefix]pun_censoring` (
195  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
196  `search_for` varchar(60) NOT NULL DEFAULT '',
197  `replace_with` varchar(60) NOT NULL DEFAULT '',
198  PRIMARY KEY (`id`)
199) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
200# --
201CREATE TABLE `[prefix]pun_config` (
202  `conf_name` varchar(255) NOT NULL DEFAULT '',
203  `conf_value` text,
204  PRIMARY KEY (`conf_name`)
205) ENGINE=MyISAM DEFAULT CHARSET=utf8;
206# --
207CREATE TABLE `[prefix]pun_forums` (
208  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
209  `forum_name` varchar(80) NOT NULL DEFAULT 'New forum',
210  `forum_desc` text,
211  `redirect_url` varchar(100) DEFAULT NULL,
212  `moderators` text,
213  `num_topics` mediumint(8) unsigned NOT NULL DEFAULT '0',
214  `num_posts` mediumint(8) unsigned NOT NULL DEFAULT '0',
215  `last_post` int(10) unsigned DEFAULT NULL,
216  `last_post_id` int(10) unsigned DEFAULT NULL,
217  `last_poster` varchar(200) DEFAULT NULL,
218  `sort_by` tinyint(1) NOT NULL DEFAULT '0',
219  `disp_position` int(10) NOT NULL DEFAULT '0',
220  `cat_id` int(10) unsigned NOT NULL DEFAULT '0',
221  PRIMARY KEY (`id`)
222) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=103 ;
223# --
224CREATE TABLE `[prefix]pun_forum_perms` (
225  `group_id` int(10) NOT NULL DEFAULT '0',
226  `forum_id` int(10) NOT NULL DEFAULT '0',
227  `read_forum` tinyint(1) NOT NULL DEFAULT '1',
228  `post_replies` tinyint(1) NOT NULL DEFAULT '1',
229  `post_topics` tinyint(1) NOT NULL DEFAULT '1',
230  PRIMARY KEY (`group_id`,`forum_id`)
231) ENGINE=MyISAM DEFAULT CHARSET=utf8;
232# --
233CREATE TABLE `[prefix]pun_forum_subscriptions` (
234  `user_id` int(10) unsigned NOT NULL DEFAULT '0',
235  `forum_id` int(10) unsigned NOT NULL DEFAULT '0',
236  PRIMARY KEY (`user_id`,`forum_id`)
237) ENGINE=MyISAM DEFAULT CHARSET=utf8;
238# --
239CREATE TABLE `[prefix]pun_groups` (
240  `g_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
241  `g_title` varchar(50) NOT NULL DEFAULT '',
242  `g_user_title` varchar(50) DEFAULT NULL,
243  `g_moderator` tinyint(1) NOT NULL DEFAULT '0',
244  `g_mod_edit_users` tinyint(1) NOT NULL DEFAULT '0',
245  `g_mod_rename_users` tinyint(1) NOT NULL DEFAULT '0',
246  `g_mod_change_passwords` tinyint(1) NOT NULL DEFAULT '0',
247  `g_mod_ban_users` tinyint(1) NOT NULL DEFAULT '0',
248  `g_read_board` tinyint(1) NOT NULL DEFAULT '1',
249  `g_view_users` tinyint(1) NOT NULL DEFAULT '1',
250  `g_post_replies` tinyint(1) NOT NULL DEFAULT '1',
251  `g_post_topics` tinyint(1) NOT NULL DEFAULT '1',
252  `g_edit_posts` tinyint(1) NOT NULL DEFAULT '1',
253  `g_delete_posts` tinyint(1) NOT NULL DEFAULT '1',
254  `g_delete_topics` tinyint(1) NOT NULL DEFAULT '1',
255  `g_set_title` tinyint(1) NOT NULL DEFAULT '1',
256  `g_search` tinyint(1) NOT NULL DEFAULT '1',
257  `g_search_users` tinyint(1) NOT NULL DEFAULT '1',
258  `g_send_email` tinyint(1) NOT NULL DEFAULT '1',
259  `g_post_flood` smallint(6) NOT NULL DEFAULT '30',
260  `g_search_flood` smallint(6) NOT NULL DEFAULT '30',
261  `g_email_flood` smallint(6) NOT NULL DEFAULT '60',
262  `g_report_flood` smallint(6) NOT NULL DEFAULT '60',
263  PRIMARY KEY (`g_id`)
264) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
265# --
266CREATE TABLE `[prefix]pun_online` (
267  `user_id` int(10) unsigned NOT NULL DEFAULT '1',
268  `ident` varchar(200) NOT NULL DEFAULT '',
269  `logged` int(10) unsigned NOT NULL DEFAULT '0',
270  `idle` tinyint(1) NOT NULL DEFAULT '0',
271  `last_post` int(10) unsigned DEFAULT NULL,
272  `last_search` int(10) unsigned DEFAULT NULL,
273  UNIQUE KEY `[prefix]pun_online_user_id_ident_idx` (`user_id`,`ident`(25)),
274  KEY `pun_online_user_id_idx` (`user_id`),
275  KEY `[prefix]pun_online_ident_idx` (`ident`(25)),
276  KEY `[prefix]pun_online_logged_idx` (`logged`)
277) ENGINE=MyISAM DEFAULT CHARSET=utf8;
278# --
279CREATE TABLE `[prefix]pun_posts` (
280  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
281  `poster` varchar(200) NOT NULL DEFAULT '',
282  `poster_id` int(10) unsigned NOT NULL DEFAULT '1',
283  `poster_ip` varchar(39) DEFAULT NULL,
284  `poster_email` varchar(80) DEFAULT NULL,
285  `message` mediumtext,
286  `hide_smilies` tinyint(1) NOT NULL DEFAULT '0',
287  `posted` int(10) unsigned NOT NULL DEFAULT '0',
288  `edited` int(10) unsigned DEFAULT NULL,
289  `edited_by` varchar(200) DEFAULT NULL,
290  `topic_id` int(10) unsigned NOT NULL DEFAULT '0',
291  PRIMARY KEY (`id`),
292  KEY `pun_posts_topic_id_idx` (`topic_id`),
293  KEY `pun_posts_multi_idx` (`poster_id`,`topic_id`)
294) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=21233 ;
295# --
296CREATE TABLE `[prefix]pun_ranks` (
297  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
298  `rank` varchar(50) NOT NULL DEFAULT '',
299  `min_posts` mediumint(8) unsigned NOT NULL DEFAULT '0',
300  PRIMARY KEY (`id`)
301) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
302# --
303CREATE TABLE `[prefix]pun_reports` (
304  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
305  `post_id` int(10) unsigned NOT NULL DEFAULT '0',
306  `topic_id` int(10) unsigned NOT NULL DEFAULT '0',
307  `forum_id` int(10) unsigned NOT NULL DEFAULT '0',
308  `reported_by` int(10) unsigned NOT NULL DEFAULT '0',
309  `created` int(10) unsigned NOT NULL DEFAULT '0',
310  `message` text NOT NULL,
311  `zapped` int(10) unsigned DEFAULT NULL,
312  `zapped_by` int(10) unsigned DEFAULT NULL,
313  PRIMARY KEY (`id`),
314  KEY `pun_reports_zapped_idx` (`zapped`)
315) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
316# --
317CREATE TABLE `[prefix]pun_search_cache` (
318  `id` int(10) unsigned NOT NULL DEFAULT '0',
319  `ident` varchar(200) NOT NULL DEFAULT '',
320  `search_data` mediumtext,
321  PRIMARY KEY (`id`),
322  KEY `pun_search_cache_ident_idx` (`ident`(8))
323) ENGINE=MyISAM DEFAULT CHARSET=utf8;
324# --
325CREATE TABLE `[prefix]pun_search_matches` (
326  `post_id` int(10) unsigned NOT NULL DEFAULT '0',
327  `word_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
328  `subject_match` tinyint(1) NOT NULL DEFAULT '0',
329  KEY `pun_search_matches_word_id_idx` (`word_id`),
330  KEY `pun_search_matches_post_id_idx` (`post_id`)
331) ENGINE=MyISAM DEFAULT CHARSET=utf8;
332# --
333CREATE TABLE `[prefix]pun_search_words` (
334  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
335  `word` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
336  PRIMARY KEY (`word`),
337  KEY `pun_search_words_id_idx` (`id`)
338) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
339# --
340CREATE TABLE `[prefix]pun_smilies` (
341  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
342  `image` varchar(60) NOT NULL DEFAULT '',
343  `text` varchar(60) NOT NULL DEFAULT '',
344  `disp_position` int(10) NOT NULL DEFAULT '0',
345  PRIMARY KEY (`id`)
346) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=89 ;
347# --
348CREATE TABLE `[prefix]pun_topics` (
349  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
350  `poster` varchar(200) NOT NULL DEFAULT '',
351  `subject` varchar(255) NOT NULL DEFAULT '',
352  `posted` int(10) unsigned NOT NULL DEFAULT '0',
353  `first_post_id` int(10) unsigned NOT NULL DEFAULT '0',
354  `last_post` int(10) unsigned NOT NULL DEFAULT '0',
355  `last_post_id` int(10) unsigned NOT NULL DEFAULT '0',
356  `last_poster` varchar(200) DEFAULT NULL,
357  `num_views` mediumint(8) unsigned NOT NULL DEFAULT '0',
358  `num_replies` mediumint(8) unsigned NOT NULL DEFAULT '0',
359  `closed` tinyint(1) NOT NULL DEFAULT '0',
360  `sticky` tinyint(1) NOT NULL DEFAULT '0',
361  `moved_to` int(10) unsigned DEFAULT NULL,
362  `forum_id` int(10) unsigned NOT NULL DEFAULT '0',
363  PRIMARY KEY (`id`),
364  KEY `pun_topics_forum_id_idx` (`forum_id`),
365  KEY `pun_topics_moved_to_idx` (`moved_to`),
366  KEY `[prefix]pun_topics_last_post_idx` (`last_post`),
367  KEY `[prefix]pun_topics_first_post_id_idx` (`first_post_id`)
368) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2441 ;
369# --
370CREATE TABLE `[prefix]pun_topic_subscriptions` (
371  `user_id` int(10) unsigned NOT NULL DEFAULT '0',
372  `topic_id` int(10) unsigned NOT NULL DEFAULT '0',
373  PRIMARY KEY (`user_id`,`topic_id`)
374) ENGINE=MyISAM DEFAULT CHARSET=utf8;
375# --
376CREATE TABLE `[prefix]pun_users` (
377  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
378  `group_id` int(10) unsigned NOT NULL DEFAULT '4',
379  `username` varchar(200) NOT NULL DEFAULT '',
380  `password` varchar(40) NOT NULL DEFAULT '',
381  `email` varchar(80) NOT NULL DEFAULT '',
382  `title` varchar(50) DEFAULT NULL,
383  `realname` varchar(40) DEFAULT NULL,
384  `url` varchar(100) DEFAULT NULL,
385  `jabber` varchar(80) DEFAULT NULL,
386  `icq` varchar(12) DEFAULT NULL,
387  `msn` varchar(80) DEFAULT NULL,
388  `aim` varchar(30) DEFAULT NULL,
389  `yahoo` varchar(30) DEFAULT NULL,
390  `location` varchar(30) DEFAULT NULL,
391  `signature` text,
392  `disp_topics` tinyint(3) unsigned DEFAULT NULL,
393  `disp_posts` tinyint(3) unsigned DEFAULT NULL,
394  `email_setting` tinyint(1) NOT NULL DEFAULT '1',
395  `notify_with_post` tinyint(1) NOT NULL DEFAULT '0',
396  `auto_notify` tinyint(1) NOT NULL DEFAULT '0',
397  `show_smilies` tinyint(1) NOT NULL DEFAULT '1',
398  `show_img` tinyint(1) NOT NULL DEFAULT '1',
399  `show_img_sig` tinyint(1) NOT NULL DEFAULT '1',
400  `show_avatars` tinyint(1) NOT NULL DEFAULT '1',
401  `show_sig` tinyint(1) NOT NULL DEFAULT '1',
402  `timezone` float NOT NULL DEFAULT '0',
403  `dst` tinyint(1) NOT NULL DEFAULT '0',
404  `date_format` tinyint(1) NOT NULL DEFAULT '0',
405  `time_format` tinyint(1) NOT NULL DEFAULT '0',
406  `language` varchar(25) NOT NULL DEFAULT 'English',
407  `style` varchar(25) NOT NULL DEFAULT 'Oxygen',
408  `num_posts` int(10) unsigned NOT NULL DEFAULT '0',
409  `last_post` int(10) unsigned DEFAULT NULL,
410  `last_search` int(10) unsigned DEFAULT NULL,
411  `last_email_sent` int(10) unsigned DEFAULT NULL,
412  `last_report_sent` int(10) unsigned DEFAULT NULL,
413  `registered` int(10) unsigned NOT NULL DEFAULT '0',
414  `registration_ip` varchar(39) NOT NULL DEFAULT '0.0.0.0',
415  `last_visit` int(10) unsigned NOT NULL DEFAULT '0',
416  `admin_note` varchar(30) DEFAULT NULL,
417  `activate_string` varchar(80) DEFAULT NULL,
418  `activate_key` varchar(8) DEFAULT NULL,
419  PRIMARY KEY (`id`),
420  UNIQUE KEY `[prefix]_pun_users_username_idx` (`username`(25)),
421  KEY `pun_users_registered_idx` (`registered`),
422  KEY `pun_users_username_idx` (`username`(8))
423) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1559 ;
424# --
425CREATE TABLE `[prefix]super_admins` (
426  `id_pun_user` int(11) NOT NULL,
427  PRIMARY KEY (`id_pun_user`)
428) ENGINE=MyISAM DEFAULT CHARSET=utf8;
429# --
430CREATE TABLE `[prefix]thumbs` (
431  `id` int(11) NOT NULL AUTO_INCREMENT,
432  `src` varchar(255) NOT NULL DEFAULT '',
433  `src_width` int(11) NOT NULL DEFAULT '0',
434  `src_height` int(11) NOT NULL DEFAULT '0',
435  `max_width` int(11) NOT NULL DEFAULT '0',
436  `max_height` int(11) NOT NULL DEFAULT '0',
437  `thumb_file` varchar(255) NOT NULL,
438  `thumb_width` int(11) NOT NULL DEFAULT '0',
439  `thumb_height` int(11) NOT NULL DEFAULT '0',
440  `creation_date` datetime NOT NULL,
441  PRIMARY KEY (`id`)
442) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
443# --
444CREATE TABLE `[prefix]videos` (
445  `id` int(11) NOT NULL AUTO_INCREMENT,
446  `id_artiste` int(11) DEFAULT NULL,
447  `titre` varchar(255) DEFAULT NULL,
448  `description` text,
449  `url` varchar(255) DEFAULT NULL,
450  `id_licence` int(11) DEFAULT NULL,
451  `date_creation` date DEFAULT NULL,
452  `date_publication` date DEFAULT NULL,
453  PRIMARY KEY (`id`)
454) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
Note: See TracBrowser for help on using the repository browser.