2006-07-23 17:25:49 +02:00
|
|
|
1-- MySQL dump 9.11
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
2006-03-05 00:31:46 +01:00
|
|
|
-- Host: localhost Database: pwg-bsf
|
2005-07-16 16:29:35 +02:00
|
|
|
-- ------------------------------------------------------
|
2006-03-05 00:31:46 +01:00
|
|
|
-- Server version 4.0.24_Debian-10-log
|
2004-01-07 01:00:01 +01:00
|
|
|
|
2005-03-25 23:26:35 +01:00
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_caddie`
|
2005-03-25 23:26:35 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_caddie`;
|
|
|
|
CREATE TABLE `phpwebgallery_caddie` (
|
|
|
|
`user_id` smallint(5) NOT NULL default '0',
|
|
|
|
`element_id` mediumint(8) NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`user_id`,`element_id`)
|
2005-03-25 23:26:35 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_categories`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_categories`;
|
|
|
|
CREATE TABLE `phpwebgallery_categories` (
|
|
|
|
`id` smallint(5) unsigned NOT NULL auto_increment,
|
|
|
|
`date_last` datetime default NULL,
|
|
|
|
`nb_images` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
`name` varchar(255) NOT NULL default '',
|
|
|
|
`id_uppercat` smallint(5) unsigned default NULL,
|
|
|
|
`comment` text,
|
|
|
|
`dir` varchar(255) default NULL,
|
2006-05-15 23:47:28 +02:00
|
|
|
`rank` smallint(5) unsigned default NULL,
|
2005-07-16 16:29:35 +02:00
|
|
|
`status` enum('public','private') NOT NULL default 'public',
|
|
|
|
`site_id` tinyint(4) unsigned default '1',
|
|
|
|
`visible` enum('true','false') NOT NULL default 'true',
|
|
|
|
`uploadable` enum('true','false') NOT NULL default 'false',
|
|
|
|
`representative_picture_id` mediumint(8) unsigned default NULL,
|
|
|
|
`uppercats` varchar(255) NOT NULL default '',
|
|
|
|
`commentable` enum('true','false') NOT NULL default 'true',
|
|
|
|
`global_rank` varchar(255) default NULL,
|
2006-07-26 02:51:08 +02:00
|
|
|
`image_order` varchar(128) default NULL,
|
2005-07-16 16:29:35 +02:00
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `categories_i2` (`id_uppercat`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_comments`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_comments`;
|
|
|
|
CREATE TABLE `phpwebgallery_comments` (
|
|
|
|
`id` int(11) unsigned NOT NULL auto_increment,
|
|
|
|
`image_id` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`author` varchar(255) default NULL,
|
|
|
|
`content` longtext,
|
|
|
|
`validated` enum('true','false') NOT NULL default 'false',
|
|
|
|
`validation_date` datetime default NULL,
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `comments_i2` (`validation_date`),
|
|
|
|
KEY `comments_i1` (`image_id`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_config`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_config`;
|
|
|
|
CREATE TABLE `phpwebgallery_config` (
|
|
|
|
`param` varchar(40) NOT NULL default '',
|
2006-03-09 02:57:13 +01:00
|
|
|
`value` text,
|
2005-07-16 16:29:35 +02:00
|
|
|
`comment` varchar(255) default NULL,
|
|
|
|
PRIMARY KEY (`param`)
|
2004-03-05 00:57:39 +01:00
|
|
|
) TYPE=MyISAM COMMENT='configuration table';
|
2004-01-07 01:00:01 +01:00
|
|
|
|
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_favorites`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_favorites`;
|
|
|
|
CREATE TABLE `phpwebgallery_favorites` (
|
2005-09-03 18:36:05 +02:00
|
|
|
`user_id` smallint(5) NOT NULL default '0',
|
2005-07-16 16:29:35 +02:00
|
|
|
`image_id` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`user_id`,`image_id`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_group_access`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_group_access`;
|
|
|
|
CREATE TABLE `phpwebgallery_group_access` (
|
|
|
|
`group_id` smallint(5) unsigned NOT NULL default '0',
|
|
|
|
`cat_id` smallint(5) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`group_id`,`cat_id`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_groups`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_groups`;
|
|
|
|
CREATE TABLE `phpwebgallery_groups` (
|
|
|
|
`id` smallint(5) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(255) NOT NULL default '',
|
2006-10-31 00:34:31 +01:00
|
|
|
`is_default` enum('true','false') NOT NULL default 'false',
|
2005-07-16 16:29:35 +02:00
|
|
|
PRIMARY KEY (`id`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_history`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_history`;
|
|
|
|
CREATE TABLE `phpwebgallery_history` (
|
|
|
|
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`login` varchar(15) default NULL,
|
|
|
|
`IP` varchar(50) NOT NULL default '',
|
|
|
|
`category` varchar(150) default NULL,
|
|
|
|
`file` varchar(50) default NULL,
|
|
|
|
`picture` varchar(150) default NULL,
|
|
|
|
KEY `history_i1` (`date`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_image_category`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_image_category`;
|
|
|
|
CREATE TABLE `phpwebgallery_image_category` (
|
|
|
|
`image_id` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
`category_id` smallint(5) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`image_id`,`category_id`),
|
|
|
|
KEY `image_category_i1` (`image_id`),
|
|
|
|
KEY `image_category_i2` (`category_id`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2006-04-03 00:26:19 +02:00
|
|
|
--
|
|
|
|
-- Table structure for table `phpwebgallery_image_tag`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_image_tag`;
|
|
|
|
CREATE TABLE `phpwebgallery_image_tag` (
|
|
|
|
`image_id` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
`tag_id` smallint(5) unsigned NOT NULL default '0',
|
2006-04-06 04:23:54 +02:00
|
|
|
PRIMARY KEY (`image_id`,`tag_id`),
|
|
|
|
KEY `image_tag_i1` (`tag_id`)
|
2006-04-03 00:26:19 +02:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_images`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_images`;
|
|
|
|
CREATE TABLE `phpwebgallery_images` (
|
|
|
|
`id` mediumint(8) unsigned NOT NULL auto_increment,
|
|
|
|
`file` varchar(255) NOT NULL default '',
|
|
|
|
`date_available` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`date_creation` date default NULL,
|
|
|
|
`tn_ext` varchar(4) default '',
|
|
|
|
`name` varchar(255) default NULL,
|
|
|
|
`comment` text,
|
|
|
|
`author` varchar(255) default NULL,
|
|
|
|
`hit` int(10) unsigned NOT NULL default '0',
|
|
|
|
`filesize` mediumint(9) unsigned default NULL,
|
|
|
|
`width` smallint(9) unsigned default NULL,
|
|
|
|
`height` smallint(9) unsigned default NULL,
|
|
|
|
`representative_ext` varchar(4) default NULL,
|
|
|
|
`date_metadata_update` date default NULL,
|
|
|
|
`average_rate` float(5,2) unsigned default NULL,
|
2006-02-01 03:46:26 +01:00
|
|
|
`has_high` enum('true') default NULL,
|
2005-07-16 16:29:35 +02:00
|
|
|
`path` varchar(255) NOT NULL default '',
|
2006-04-05 00:29:35 +02:00
|
|
|
`storage_category_id` smallint(5) unsigned default NULL,
|
2005-07-16 16:29:35 +02:00
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `images_i2` (`date_available`),
|
|
|
|
KEY `images_i3` (`average_rate`),
|
|
|
|
KEY `images_i4` (`hit`),
|
2006-04-13 22:42:37 +02:00
|
|
|
KEY `images_i5` (`date_creation`),
|
|
|
|
KEY `images_i1` (`storage_category_id`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2006-10-31 03:41:32 +01:00
|
|
|
--
|
|
|
|
-- Table structure for table `phpwebgallery_plugins`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_plugins`;
|
|
|
|
CREATE TABLE `phpwebgallery_plugins` (
|
|
|
|
`id` varchar(64) binary NOT NULL default '',
|
|
|
|
`state` enum('inactive','active') NOT NULL default 'inactive',
|
|
|
|
`version` varchar(64) NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2004-08-31 00:00:46 +02:00
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_rate`
|
2004-08-31 00:00:46 +02:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_rate`;
|
|
|
|
CREATE TABLE `phpwebgallery_rate` (
|
2005-09-03 18:36:05 +02:00
|
|
|
`user_id` smallint(5) NOT NULL default '0',
|
2005-07-16 16:29:35 +02:00
|
|
|
`element_id` mediumint(8) unsigned NOT NULL default '0',
|
2006-02-14 02:14:31 +01:00
|
|
|
`anonymous_id` varchar(45) NOT NULL default '',
|
2005-07-16 16:29:35 +02:00
|
|
|
`rate` tinyint(2) unsigned NOT NULL default '0',
|
2006-02-14 02:14:31 +01:00
|
|
|
`date` date NOT NULL default '0000-00-00',
|
|
|
|
PRIMARY KEY (`element_id`,`user_id`,`anonymous_id`)
|
2004-08-31 00:00:46 +02:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2006-01-20 15:34:37 +01:00
|
|
|
--
|
|
|
|
-- Table structure for table `phpwebgallery_search`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_search`;
|
|
|
|
CREATE TABLE `phpwebgallery_search` (
|
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`last_seen` date default NULL,
|
|
|
|
`rules` text,
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_sessions`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_sessions`;
|
|
|
|
CREATE TABLE `phpwebgallery_sessions` (
|
|
|
|
`id` varchar(255) binary NOT NULL default '',
|
2006-01-15 14:45:42 +01:00
|
|
|
`data` text NOT NULL,
|
2005-07-16 16:29:35 +02:00
|
|
|
`expiration` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
PRIMARY KEY (`id`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_sites`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_sites`;
|
|
|
|
CREATE TABLE `phpwebgallery_sites` (
|
|
|
|
`id` tinyint(4) NOT NULL auto_increment,
|
|
|
|
`galleries_url` varchar(255) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `sites_ui1` (`galleries_url`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2006-04-03 00:26:19 +02:00
|
|
|
--
|
|
|
|
-- Table structure for table `phpwebgallery_tags`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_tags`;
|
|
|
|
CREATE TABLE `phpwebgallery_tags` (
|
|
|
|
`id` smallint(5) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(255) binary NOT NULL default '',
|
|
|
|
`url_name` varchar(255) binary NOT NULL default '',
|
2006-04-06 04:23:54 +02:00
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `tags_i1` (`url_name`)
|
2006-04-03 00:26:19 +02:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2005-11-24 22:37:29 +01:00
|
|
|
--
|
|
|
|
-- Table structure for table `phpwebgallery_upgrade`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_upgrade`;
|
|
|
|
CREATE TABLE `phpwebgallery_upgrade` (
|
|
|
|
`id` varchar(20) NOT NULL default '',
|
|
|
|
`applied` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`description` varchar(255) default NULL,
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_user_access`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_user_access`;
|
|
|
|
CREATE TABLE `phpwebgallery_user_access` (
|
2005-09-03 18:36:05 +02:00
|
|
|
`user_id` smallint(5) NOT NULL default '0',
|
2005-07-16 16:29:35 +02:00
|
|
|
`cat_id` smallint(5) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`user_id`,`cat_id`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2004-12-20 13:30:36 +01:00
|
|
|
--
|
2005-08-08 22:52:19 +02:00
|
|
|
-- Table structure for table `phpwebgallery_user_cache`
|
2004-12-20 13:30:36 +01:00
|
|
|
--
|
|
|
|
|
2005-08-08 22:52:19 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_user_cache`;
|
|
|
|
CREATE TABLE `phpwebgallery_user_cache` (
|
2005-09-03 18:36:05 +02:00
|
|
|
`user_id` smallint(5) NOT NULL default '0',
|
2005-07-16 16:29:35 +02:00
|
|
|
`need_update` enum('true','false') NOT NULL default 'true',
|
|
|
|
`forbidden_categories` text,
|
2006-04-03 00:26:19 +02:00
|
|
|
`nb_total_images` mediumint(8) unsigned default NULL,
|
2005-07-16 16:29:35 +02:00
|
|
|
PRIMARY KEY (`user_id`)
|
2004-12-20 13:30:36 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2006-12-02 00:31:19 +01:00
|
|
|
--
|
|
|
|
-- Table structure for table `phpwebgallery_user_cache_categories`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_user_cache_categories`;
|
|
|
|
CREATE TABLE `phpwebgallery_user_cache_categories` (
|
|
|
|
`user_id` smallint(5) NOT NULL default '0',
|
|
|
|
`cat_id` smallint(5) unsigned NOT NULL default '0',
|
|
|
|
`max_date_last` datetime default NULL,
|
|
|
|
`count_images` mediumint(8) unsigned default 0,
|
|
|
|
`count_categories` mediumint(8) unsigned default 0,
|
|
|
|
PRIMARY KEY (`user_id`, `cat_id`)
|
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2005-08-19 15:54:40 +02:00
|
|
|
--
|
|
|
|
-- Table structure for table `phpwebgallery_user_feed`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_user_feed`;
|
|
|
|
CREATE TABLE `phpwebgallery_user_feed` (
|
|
|
|
`id` varchar(50) binary NOT NULL default '',
|
2005-09-03 18:36:05 +02:00
|
|
|
`user_id` smallint(5) NOT NULL default '0',
|
2005-08-19 15:54:40 +02:00
|
|
|
`last_check` datetime default NULL,
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_user_group`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_user_group`;
|
|
|
|
CREATE TABLE `phpwebgallery_user_group` (
|
2005-09-03 18:36:05 +02:00
|
|
|
`user_id` smallint(5) NOT NULL default '0',
|
2005-07-16 16:29:35 +02:00
|
|
|
`group_id` smallint(5) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`group_id`,`user_id`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
|
|
|
--
|
2005-08-08 22:52:19 +02:00
|
|
|
-- Table structure for table `phpwebgallery_user_infos`
|
2005-07-16 16:29:35 +02:00
|
|
|
--
|
|
|
|
|
2005-08-08 22:52:19 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_user_infos`;
|
|
|
|
CREATE TABLE `phpwebgallery_user_infos` (
|
2005-09-03 18:36:05 +02:00
|
|
|
`user_id` smallint(5) NOT NULL default '0',
|
2005-07-16 16:29:35 +02:00
|
|
|
`nb_image_line` tinyint(1) unsigned NOT NULL default '5',
|
|
|
|
`nb_line_page` tinyint(3) unsigned NOT NULL default '3',
|
2006-04-03 00:26:19 +02:00
|
|
|
`status` enum('webmaster','admin','normal','generic','guest') NOT NULL default 'guest',
|
2006-03-16 23:58:16 +01:00
|
|
|
`adviser` enum('true','false') NOT NULL default 'false',
|
2005-07-16 16:29:35 +02:00
|
|
|
`language` varchar(50) NOT NULL default 'english',
|
|
|
|
`maxwidth` smallint(6) default NULL,
|
|
|
|
`maxheight` smallint(6) default NULL,
|
|
|
|
`expand` enum('true','false') NOT NULL default 'false',
|
|
|
|
`show_nb_comments` enum('true','false') NOT NULL default 'false',
|
|
|
|
`recent_period` tinyint(3) unsigned NOT NULL default '7',
|
2005-12-03 21:42:03 +01:00
|
|
|
`template` varchar(255) NOT NULL default 'yoga/clear',
|
2005-07-16 16:29:35 +02:00
|
|
|
`registration_date` datetime NOT NULL default '0000-00-00 00:00:00',
|
2006-03-14 00:27:34 +01:00
|
|
|
`enabled_high` enum('true','false') NOT NULL default 'true',
|
2005-08-08 22:52:19 +02:00
|
|
|
UNIQUE KEY `user_infos_ui1` (`user_id`)
|
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2006-03-05 00:31:46 +01:00
|
|
|
--
|
|
|
|
-- Table structure for table `phpwebgallery_user_mail_notification`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_user_mail_notification`;
|
|
|
|
CREATE TABLE `phpwebgallery_user_mail_notification` (
|
|
|
|
`user_id` smallint(5) NOT NULL default '0',
|
2006-04-01 03:14:57 +02:00
|
|
|
`check_key` varchar(16) binary NOT NULL default '',
|
2006-03-05 00:31:46 +01:00
|
|
|
`enabled` enum('true','false') NOT NULL default 'false',
|
|
|
|
`last_send` datetime default NULL,
|
|
|
|
PRIMARY KEY (`user_id`),
|
|
|
|
UNIQUE KEY `uidx_check_key` (`check_key`)
|
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2005-08-08 22:52:19 +02:00
|
|
|
--
|
|
|
|
-- Table structure for table `phpwebgallery_users`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_users`;
|
|
|
|
CREATE TABLE `phpwebgallery_users` (
|
2005-09-03 18:36:05 +02:00
|
|
|
`id` smallint(5) NOT NULL auto_increment,
|
2006-07-25 09:40:02 +02:00
|
|
|
`username` varchar(100) binary NOT NULL default '',
|
2005-08-08 22:52:19 +02:00
|
|
|
`password` varchar(32) default NULL,
|
|
|
|
`mail_address` varchar(255) default NULL,
|
2005-07-16 16:29:35 +02:00
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `users_ui1` (`username`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
|
|
|
--
|
2005-07-16 16:29:35 +02:00
|
|
|
-- Table structure for table `phpwebgallery_waiting`
|
2004-01-07 01:00:01 +01:00
|
|
|
--
|
|
|
|
|
2005-07-16 16:29:35 +02:00
|
|
|
DROP TABLE IF EXISTS `phpwebgallery_waiting`;
|
|
|
|
CREATE TABLE `phpwebgallery_waiting` (
|
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`storage_category_id` smallint(5) unsigned NOT NULL default '0',
|
|
|
|
`file` varchar(255) NOT NULL default '',
|
|
|
|
`username` varchar(255) NOT NULL default '',
|
|
|
|
`mail_address` varchar(255) NOT NULL default '',
|
|
|
|
`date` int(10) unsigned NOT NULL default '0',
|
|
|
|
`tn_ext` char(3) default NULL,
|
|
|
|
`validated` enum('true','false') NOT NULL default 'false',
|
|
|
|
`infos` text,
|
|
|
|
PRIMARY KEY (`id`)
|
2004-01-07 01:00:01 +01:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
|
2006-12-16 10:30:44 +01:00
|
|
|
--
|
|
|
|
-- Table structure for table `phpwebgallery_ws_access`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS phpwebgallery_ws_access;
|
|
|
|
CREATE TABLE phpwebgallery_ws_access (
|
|
|
|
id smallint(5) unsigned NOT NULL auto_increment,
|
|
|
|
name varchar(32) NOT NULL default '',
|
|
|
|
access varchar(255) default NULL,
|
|
|
|
`start` datetime default NULL,
|
|
|
|
`end` datetime default NULL,
|
|
|
|
request varchar(255) default NULL,
|
|
|
|
high enum('true','false') NOT NULL default 'true',
|
|
|
|
normal enum('true','false') NOT NULL default 'true',
|
|
|
|
`limit` smallint(5) unsigned default NULL,
|
|
|
|
`comment` varchar(255) default NULL,
|
|
|
|
PRIMARY KEY (id),
|
|
|
|
UNIQUE KEY name (name)
|
|
|
|
) ENGINE=MyISAM COMMENT='Access for Web Services';
|
|
|
|
|