-- <?php exit;?>

CREATE TABLE `p8_` (
  `id` int(10) unsigned NOT NULL,
  `model` varchar(20) NOT NULL default '',
  `cid` smallint(5) unsigned NOT NULL,
  `uid` mediumint(8) unsigned NOT NULL default '0',
  `username` varchar(20) NOT NULL default '',
  `title` varchar(100) NOT NULL default '',
  `title_color` varchar(7) NOT NULL default '',
  `title_bold` tinyint(1) NOT NULL default '0',
  `sub_title` varchar(120) NOT NULL DEFAULT '',
  `site` varchar(50) NOT NULL DEFAULT '',
  `frame` varchar(100) NOT NULL default '',
  `verify_frame` varchar(255) NOT NULL default '',
  `url` varchar(100) NOT NULL default '',
  `attributes` varchar(40) NOT NULL DEFAULT '',
  `summary` varchar(255) NOT NULL default '',
  `source` varchar(120) NOT NULL default '',
  `author` varchar(20) NOT NULL default '',
  `editer` varchar(20) NOT NULL default '',
  `keywords` varchar(100) NOT NULL default '',
  `verified` tinyint(1) unsigned NOT NULL,
  `verifier` varchar(50) NOT NULL default '',
  `timestamp` int(10) unsigned NOT NULL,
  `create_time` int(10) unsigned NOT NULL default '0',
  `list_order` int(10) unsigned NOT NULL,
  `update_time` int(10) unsigned NOT NULL,
  `pages` smallint(5) unsigned NOT NULL default '1',
  `html_view_url_rule` varchar(80) NOT NULL default '',
  `template` varchar(30) NOT NULL default '',
  `views` mediumint(8) unsigned NOT NULL,
  `level` tinyint(1) unsigned NOT NULL default '0',
  `level_time` int(10) unsigned NOT NULL default '0',
  `comments` mediumint(8) unsigned NOT NULL,
  `seo_keywords` varchar(100) NOT NULL,
  `seo_description` varchar(200) NOT NULL,
  `label_postfix` varchar(50) NOT NULL,
  `config` varchar(255) NOT NULL,
  `custom_a` VARCHAR(255) NOT NULL,
  `custom_b` VARCHAR(255) NOT NULL,
  `custom_c` VARCHAR(255) NOT NULL,
  `custom_d` VARCHAR(255) NOT NULL,
  `custom_e` VARCHAR(255) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `cid` (`cid`,`list_order`),
  KEY `cid_id` (`cid`,`id`),
  KEY `level` (`level`,`list_order`),
  KEY `uid` (`uid`)
)ENGINE=MyISAM  DEFAULT CHARSET=utf8;

CREATE TABLE `p8_addon` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `iid` int(10) unsigned NOT NULL,
  `site` varchar(50) NOT NULL DEFAULT '',
  `page` smallint(5) unsigned NOT NULL,
  `addon_title` varchar(40) NOT NULL default '',
  `addon_frame` varchar(100) NOT NULL default '',
  `addon_summary` varchar(180) NOT NULL default '',
  `ip` char(15) NOT NULL default '',
  `last_update_ip` char(15) NOT NULL default '',
  `timestamp` int(10) unsigned NOT NULL,
  `custom_f` VARCHAR( 255 ) NOT NULL,
  `custom_g` VARCHAR( 255 ) NOT NULL,
  `custom_h` VARCHAR( 255 ) NOT NULL,
  `custom_i` VARCHAR( 255 ) NOT NULL,
  `custom_j` VARCHAR( 255 ) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `iid` (`iid`,`page`)
)ENGINE=MyISAM  DEFAULT CHARSET=utf8;
