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

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

import initial

File size: 16.3 KB
Line 
1CREATE TABLE IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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 IF NOT EXISTS `[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(50) DEFAULT NULL,
180  `message` varchar(255) DEFAULT NULL,
181  `expire` int(10) unsigned DEFAULT NULL,
182  PRIMARY KEY (`id`)
183) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
184# --
185CREATE TABLE IF NOT EXISTS `[prefix]pun_categories` (
186  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
187  `cat_name` varchar(80) NOT NULL DEFAULT 'New Category',
188  `disp_position` int(10) NOT NULL DEFAULT '0',
189  PRIMARY KEY (`id`)
190) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ;
191# --
192CREATE TABLE IF NOT EXISTS `[prefix]pun_censoring` (
193  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
194  `search_for` varchar(60) NOT NULL DEFAULT '',
195  `replace_with` varchar(60) NOT NULL DEFAULT '',
196  PRIMARY KEY (`id`)
197) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
198# --
199CREATE TABLE IF NOT EXISTS `[prefix]pun_config` (
200  `conf_name` varchar(255) NOT NULL DEFAULT '',
201  `conf_value` text,
202  PRIMARY KEY (`conf_name`)
203) ENGINE=MyISAM DEFAULT CHARSET=utf8;
204# --
205CREATE TABLE IF NOT EXISTS `[prefix]pun_forums` (
206  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
207  `forum_name` varchar(80) NOT NULL DEFAULT 'New forum',
208  `forum_desc` text,
209  `redirect_url` varchar(100) DEFAULT NULL,
210  `moderators` text,
211  `num_topics` mediumint(8) unsigned NOT NULL DEFAULT '0',
212  `num_posts` mediumint(8) unsigned NOT NULL DEFAULT '0',
213  `last_post` int(10) unsigned DEFAULT NULL,
214  `last_post_id` int(10) unsigned DEFAULT NULL,
215  `last_poster` varchar(200) DEFAULT NULL,
216  `sort_by` tinyint(1) NOT NULL DEFAULT '0',
217  `disp_position` int(10) NOT NULL DEFAULT '0',
218  `cat_id` int(10) unsigned NOT NULL DEFAULT '0',
219  PRIMARY KEY (`id`)
220) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=103 ;
221# --
222CREATE TABLE IF NOT EXISTS `[prefix]pun_forum_perms` (
223  `group_id` int(10) NOT NULL DEFAULT '0',
224  `forum_id` int(10) NOT NULL DEFAULT '0',
225  `read_forum` tinyint(1) NOT NULL DEFAULT '1',
226  `post_replies` tinyint(1) NOT NULL DEFAULT '1',
227  `post_topics` tinyint(1) NOT NULL DEFAULT '1',
228  PRIMARY KEY (`group_id`,`forum_id`)
229) ENGINE=MyISAM DEFAULT CHARSET=utf8;
230# --
231CREATE TABLE IF NOT EXISTS `[prefix]pun_groups` (
232  `g_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
233  `g_title` varchar(50) NOT NULL DEFAULT '',
234  `g_user_title` varchar(50) DEFAULT NULL,
235  `g_read_board` tinyint(1) NOT NULL DEFAULT '1',
236  `g_post_replies` tinyint(1) NOT NULL DEFAULT '1',
237  `g_post_topics` tinyint(1) NOT NULL DEFAULT '1',
238  `g_post_polls` tinyint(1) NOT NULL DEFAULT '1',
239  `g_edit_posts` tinyint(1) NOT NULL DEFAULT '1',
240  `g_delete_posts` tinyint(1) NOT NULL DEFAULT '1',
241  `g_delete_topics` tinyint(1) NOT NULL DEFAULT '1',
242  `g_set_title` tinyint(1) NOT NULL DEFAULT '1',
243  `g_search` tinyint(1) NOT NULL DEFAULT '1',
244  `g_search_users` tinyint(1) NOT NULL DEFAULT '1',
245  `g_edit_subjects_interval` smallint(6) NOT NULL DEFAULT '300',
246  `g_post_flood` smallint(6) NOT NULL DEFAULT '30',
247  `g_search_flood` smallint(6) NOT NULL DEFAULT '30',
248  PRIMARY KEY (`g_id`)
249) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
250# --
251CREATE TABLE IF NOT EXISTS `[prefix]pun_online` (
252  `user_id` int(10) unsigned NOT NULL DEFAULT '1',
253  `ident` varchar(200) NOT NULL DEFAULT '',
254  `logged` int(10) unsigned NOT NULL DEFAULT '0',
255  `idle` tinyint(1) NOT NULL DEFAULT '0',
256  KEY `pun_online_user_id_idx` (`user_id`)
257) ENGINE=MEMORY DEFAULT CHARSET=utf8;
258# --
259CREATE TABLE IF NOT EXISTS `[prefix]pun_posts` (
260  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
261  `poster` varchar(200) NOT NULL DEFAULT '',
262  `poster_id` int(10) unsigned NOT NULL DEFAULT '1',
263  `poster_ip` varchar(15) DEFAULT NULL,
264  `poster_email` varchar(50) DEFAULT NULL,
265  `message` text NOT NULL,
266  `hide_smilies` tinyint(1) NOT NULL DEFAULT '0',
267  `posted` int(10) unsigned NOT NULL DEFAULT '0',
268  `edited` int(10) unsigned DEFAULT NULL,
269  `edited_by` varchar(200) DEFAULT NULL,
270  `topic_id` int(10) unsigned NOT NULL DEFAULT '0',
271  PRIMARY KEY (`id`),
272  KEY `pun_posts_topic_id_idx` (`topic_id`),
273  KEY `pun_posts_multi_idx` (`poster_id`,`topic_id`)
274) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=21233 ;
275# --
276CREATE TABLE IF NOT EXISTS `[prefix]pun_ranks` (
277  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
278  `rank` varchar(50) NOT NULL DEFAULT '',
279  `min_posts` mediumint(8) unsigned NOT NULL DEFAULT '0',
280  PRIMARY KEY (`id`)
281) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
282# --
283CREATE TABLE IF NOT EXISTS `[prefix]pun_reports` (
284  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
285  `post_id` int(10) unsigned NOT NULL DEFAULT '0',
286  `topic_id` int(10) unsigned NOT NULL DEFAULT '0',
287  `forum_id` int(10) unsigned NOT NULL DEFAULT '0',
288  `reported_by` int(10) unsigned NOT NULL DEFAULT '0',
289  `created` int(10) unsigned NOT NULL DEFAULT '0',
290  `message` text NOT NULL,
291  `zapped` int(10) unsigned DEFAULT NULL,
292  `zapped_by` int(10) unsigned DEFAULT NULL,
293  PRIMARY KEY (`id`),
294  KEY `pun_reports_zapped_idx` (`zapped`)
295) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
296# --
297CREATE TABLE IF NOT EXISTS `[prefix]pun_search_cache` (
298  `id` int(10) unsigned NOT NULL DEFAULT '0',
299  `ident` varchar(200) NOT NULL DEFAULT '',
300  `search_data` text NOT NULL,
301  PRIMARY KEY (`id`),
302  KEY `pun_search_cache_ident_idx` (`ident`(8))
303) ENGINE=MyISAM DEFAULT CHARSET=utf8;
304# --
305CREATE TABLE IF NOT EXISTS `[prefix]pun_search_matches` (
306  `post_id` int(10) unsigned NOT NULL DEFAULT '0',
307  `word_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
308  `subject_match` tinyint(1) NOT NULL DEFAULT '0',
309  KEY `pun_search_matches_word_id_idx` (`word_id`),
310  KEY `pun_search_matches_post_id_idx` (`post_id`)
311) ENGINE=MyISAM DEFAULT CHARSET=utf8;
312# --
313CREATE TABLE IF NOT EXISTS `[prefix]pun_search_words` (
314  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
315  `word` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
316  PRIMARY KEY (`word`),
317  KEY `pun_search_words_id_idx` (`id`)
318) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
319# --
320CREATE TABLE IF NOT EXISTS `[prefix]pun_smilies` (
321  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
322  `image` varchar(60) NOT NULL DEFAULT '',
323  `text` varchar(60) NOT NULL DEFAULT '',
324  `disp_position` int(10) NOT NULL DEFAULT '0',
325  PRIMARY KEY (`id`)
326) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=89 ;
327# --
328CREATE TABLE IF NOT EXISTS `[prefix]pun_subscriptions` (
329  `user_id` int(10) unsigned NOT NULL DEFAULT '0',
330  `topic_id` int(10) unsigned NOT NULL DEFAULT '0',
331  PRIMARY KEY (`user_id`,`topic_id`)
332) ENGINE=MyISAM DEFAULT CHARSET=utf8;
333# --
334CREATE TABLE IF NOT EXISTS `[prefix]pun_topics` (
335  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
336  `poster` varchar(200) NOT NULL DEFAULT '',
337  `subject` varchar(255) NOT NULL DEFAULT '',
338  `posted` int(10) unsigned NOT NULL DEFAULT '0',
339  `last_post` int(10) unsigned NOT NULL DEFAULT '0',
340  `last_post_id` int(10) unsigned NOT NULL DEFAULT '0',
341  `last_poster` varchar(200) DEFAULT NULL,
342  `num_views` mediumint(8) unsigned NOT NULL DEFAULT '0',
343  `num_replies` mediumint(8) unsigned NOT NULL DEFAULT '0',
344  `closed` tinyint(1) NOT NULL DEFAULT '0',
345  `sticky` tinyint(1) NOT NULL DEFAULT '0',
346  `moved_to` int(10) unsigned DEFAULT NULL,
347  `forum_id` int(10) unsigned NOT NULL DEFAULT '0',
348  PRIMARY KEY (`id`),
349  KEY `pun_topics_forum_id_idx` (`forum_id`),
350  KEY `pun_topics_moved_to_idx` (`moved_to`)
351) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2441 ;
352# --
353CREATE TABLE IF NOT EXISTS `[prefix]pun_users` (
354  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
355  `group_id` int(10) unsigned NOT NULL DEFAULT '4',
356  `username` varchar(200) NOT NULL DEFAULT '',
357  `password` varchar(40) NOT NULL DEFAULT '',
358  `email` varchar(50) NOT NULL DEFAULT '',
359  `title` varchar(50) DEFAULT NULL,
360  `realname` varchar(40) DEFAULT NULL,
361  `url` varchar(100) DEFAULT NULL,
362  `jabber` varchar(75) DEFAULT NULL,
363  `icq` varchar(12) DEFAULT NULL,
364  `msn` varchar(50) DEFAULT NULL,
365  `aim` varchar(30) DEFAULT NULL,
366  `yahoo` varchar(30) DEFAULT NULL,
367  `location` varchar(30) DEFAULT NULL,
368  `use_avatar` tinyint(1) NOT NULL DEFAULT '0',
369  `signature` text,
370  `disp_topics` tinyint(3) unsigned DEFAULT NULL,
371  `disp_posts` tinyint(3) unsigned DEFAULT NULL,
372  `email_setting` tinyint(1) NOT NULL DEFAULT '1',
373  `save_pass` tinyint(1) NOT NULL DEFAULT '1',
374  `notify_with_post` tinyint(1) NOT NULL DEFAULT '0',
375  `show_smilies` tinyint(1) NOT NULL DEFAULT '1',
376  `show_img` tinyint(1) NOT NULL DEFAULT '1',
377  `show_img_sig` tinyint(1) NOT NULL DEFAULT '1',
378  `show_avatars` tinyint(1) NOT NULL DEFAULT '1',
379  `show_sig` tinyint(1) NOT NULL DEFAULT '1',
380  `timezone` float NOT NULL DEFAULT '0',
381  `language` varchar(25) NOT NULL DEFAULT 'English',
382  `style` varchar(25) NOT NULL DEFAULT 'Oxygen',
383  `num_posts` int(10) unsigned NOT NULL DEFAULT '0',
384  `last_post` int(10) unsigned DEFAULT NULL,
385  `registered` int(10) unsigned NOT NULL DEFAULT '0',
386  `registration_ip` varchar(15) NOT NULL DEFAULT '0.0.0.0',
387  `last_visit` int(10) unsigned NOT NULL DEFAULT '0',
388  `admin_note` varchar(30) DEFAULT NULL,
389  `activate_string` varchar(50) DEFAULT NULL,
390  `activate_key` varchar(8) DEFAULT NULL,
391  PRIMARY KEY (`id`),
392  KEY `pun_users_registered_idx` (`registered`),
393  KEY `pun_users_username_idx` (`username`(8))
394) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1559 ;
395# --
396CREATE TABLE IF NOT EXISTS `[prefix]super_admins` (
397  `id_pun_user` int(11) NOT NULL,
398  PRIMARY KEY (`id_pun_user`)
399) ENGINE=MyISAM DEFAULT CHARSET=utf8;
400# --
401CREATE TABLE IF NOT EXISTS `[prefix]thumbs` (
402  `id` int(11) NOT NULL AUTO_INCREMENT,
403  `src` varchar(255) NOT NULL DEFAULT '',
404  `src_width` int(11) NOT NULL DEFAULT '0',
405  `src_height` int(11) NOT NULL DEFAULT '0',
406  `max_width` int(11) NOT NULL DEFAULT '0',
407  `max_height` int(11) NOT NULL DEFAULT '0',
408  `thumb_file` varchar(255) NOT NULL,
409  `thumb_width` int(11) NOT NULL DEFAULT '0',
410  `thumb_height` int(11) NOT NULL DEFAULT '0',
411  `creation_date` datetime NOT NULL,
412  PRIMARY KEY (`id`)
413) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
414# --
415CREATE TABLE IF NOT EXISTS `[prefix]videos` (
416  `id` int(11) NOT NULL AUTO_INCREMENT,
417  `id_artiste` int(11) DEFAULT NULL,
418  `titre` varchar(255) DEFAULT NULL,
419  `description` text,
420  `url` varchar(255) DEFAULT NULL,
421  `id_licence` int(11) DEFAULT NULL,
422  `date_creation` date DEFAULT NULL,
423  `date_publication` date DEFAULT NULL,
424  PRIMARY KEY (`id`)
425) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
Note: See TracBrowser for help on using the repository browser.