-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_access`
--
DROP TABLE IF EXISTS `serendipity_access`;
CREATE TABLE `serendipity_access` (
`groupid` int(10) unsigned NOT NULL default '0',
`artifact_id` int(10) unsigned NOT NULL default '0',
`artifact_type` varchar(64) NOT NULL default '',
`artifact_mode` varchar(64) NOT NULL default '',
`artifact_index` varchar(64) NOT NULL default '',
KEY `accessgroup_idx` (`groupid`),
KEY `accessgroupT_idx` (`artifact_id`,`artifact_type`,`artifact_mode`),
KEY `accessforeign_idx` (`artifact_id`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_authorgroups`
--
DROP TABLE IF EXISTS `serendipity_authorgroups`;
CREATE TABLE `serendipity_authorgroups` (
`groupid` int(10) unsigned NOT NULL default '0',
`authorid` int(10) unsigned NOT NULL default '0',
KEY `authorgroup_idxA` (`groupid`),
KEY `authorgroup_idxB` (`authorid`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_authors`
--
DROP TABLE IF EXISTS `serendipity_authors`;
CREATE TABLE `serendipity_authors` (
`realname` varchar(255) NOT NULL default '',
`username` varchar(32) default NULL,
`password` varchar(32) default NULL,
`authorid` int(11) NOT NULL auto_increment,
`mail_comments` int(1) default '1',
`mail_trackbacks` int(1) default '1',
`email` varchar(128) NOT NULL default '',
`userlevel` int(4) unsigned NOT NULL default '0',
`right_publish` int(1) default '1',
PRIMARY KEY (`authorid`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_category`
--
DROP TABLE IF EXISTS `serendipity_category`;
CREATE TABLE `serendipity_category` (
`categoryid` int(11) NOT NULL auto_increment,
`category_name` varchar(255) default NULL,
`category_icon` varchar(255) default NULL,
`category_description` text,
`authorid` int(11) default NULL,
`category_left` int(11) default '0',
`category_right` int(11) default '0',
`parentid` int(11) NOT NULL default '0',
`sort_order` int(11) default NULL,
`hide_sub` int(1) default NULL,
PRIMARY KEY (`categoryid`),
KEY `categorya_idx` (`authorid`),
KEY `categoryp_idx` (`parentid`),
KEY `categorylr_idx` (`category_left`,`category_right`),
KEY `categoryso_idx` (`sort_order`)
) ENGINE=MyISAM ;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_comments`
--
DROP TABLE IF EXISTS `serendipity_comments`;
CREATE TABLE `serendipity_comments` (
`id` int(11) NOT NULL auto_increment,
`entry_id` int(10) unsigned NOT NULL default '0',
`parent_id` int(10) unsigned NOT NULL default '0',
`timestamp` int(10) unsigned default NULL,
`title` varchar(150) default NULL,
`author` varchar(80) default NULL,
`email` varchar(200) default NULL,
`url` varchar(200) default NULL,
`ip` varchar(64) default NULL,
`body` text,
`type` varchar(100) default 'regular',
`subscribed` enum('true','false') NOT NULL default 'true',
`status` varchar(50) NOT NULL,
`referer` varchar(200) default NULL,
PRIMARY KEY (`id`),
KEY `commentry_idx` (`entry_id`),
KEY `commpentry_idx` (`parent_id`),
KEY `commtype_idx` (`type`),
KEY `commstat_idx` (`status`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_config`
--
DROP TABLE IF EXISTS `serendipity_config`;
CREATE TABLE `serendipity_config` (
`name` varchar(255) NOT NULL,
`value` text NOT NULL,
`authorid` int(11) default '0',
KEY `configauthorid_idx` (`authorid`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_entries`
--
DROP TABLE IF EXISTS `serendipity_entries`;
CREATE TABLE `serendipity_entries` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(200) default NULL,
`timestamp` int(10) unsigned default NULL,
`body` text,
`comments` int(4) unsigned default '0',
`trackbacks` int(4) unsigned default '0',
`extended` text,
`exflag` int(1) default NULL,
`author` varchar(20) default NULL,
`authorid` int(11) default NULL,
`isdraft` enum('true','false') NOT NULL default 'true',
`allow_comments` enum('true','false') NOT NULL default 'true',
`last_modified` int(10) unsigned default NULL,
`moderate_comments` enum('true','false') NOT NULL default 'true',
PRIMARY KEY (`id`),
KEY `date_idx` (`timestamp`),
KEY `mod_idx` (`last_modified`),
KEY `edraft_idx` (`isdraft`),
KEY `eauthor_idx` (`authorid`),
FULLTEXT KEY `entry_idx` (`title`,`body`,`extended`)
) ENGINE=MyISAM ;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_entrycat`
--
DROP TABLE IF EXISTS `serendipity_entrycat`;
CREATE TABLE `serendipity_entrycat` (
`entryid` int(11) NOT NULL,
`categoryid` int(11) NOT NULL,
UNIQUE KEY `entryid_idx` (`entryid`,`categoryid`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_entryproperties`
--
DROP TABLE IF EXISTS `serendipity_entryproperties`;
CREATE TABLE `serendipity_entryproperties` (
`entryid` int(11) NOT NULL,
`property` varchar(255) NOT NULL,
`value` text,
UNIQUE KEY `prop_idx` (`entryid`,`property`),
KEY `entrypropid_idx` (`entryid`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_exits`
--
DROP TABLE IF EXISTS `serendipity_exits`;
CREATE TABLE `serendipity_exits` (
`entry_id` int(11) NOT NULL default '0',
`day` date NOT NULL,
`count` int(11) NOT NULL default '0',
`scheme` varchar(5) default NULL,
`host` varchar(100) NOT NULL,
`port` varchar(5) default NULL,
`path` varchar(230) NOT NULL default '',
`query` varchar(255) default NULL,
PRIMARY KEY (`host`,`path`,`day`,`entry_id`),
KEY `exits_idx` (`entry_id`,`day`,`host`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_groupconfig`
--
DROP TABLE IF EXISTS `serendipity_groupconfig`;
CREATE TABLE `serendipity_groupconfig` (
`id` int(10) unsigned NOT NULL default '0',
`property` varchar(128) default NULL,
`value` varchar(32) default NULL,
KEY `groupid_idx` (`id`),
KEY `groupprop_idx` (`id`,`property`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_groups`
--
DROP TABLE IF EXISTS `serendipity_groups`;
CREATE TABLE `serendipity_groups` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(64) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_images`
--
DROP TABLE IF EXISTS `serendipity_images`;
CREATE TABLE `serendipity_images` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`extension` varchar(5) NOT NULL default '',
`mime` varchar(255) NOT NULL default '',
`size` int(11) NOT NULL default '0',
`dimensions_width` int(11) NOT NULL default '0',
`dimensions_height` int(11) NOT NULL default '0',
`date` int(11) NOT NULL default '0',
`thumbnail_name` varchar(255) NOT NULL default '',
`authorid` int(11) default '0',
`path` text,
`hotlink` int(1) default NULL,
`realname` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `imagesauthorid_idx` (`authorid`),
FULLTEXT KEY `pathkey_idx` (`path`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_mediaproperties`
--
DROP TABLE IF EXISTS `serendipity_mediaproperties`;
CREATE TABLE `serendipity_mediaproperties` (
`mediaid` int(11) NOT NULL,
`property` varchar(128) NOT NULL,
`property_group` varchar(50) NOT NULL default '',
`property_subgroup` varchar(50) NOT NULL default '',
`value` text,
UNIQUE KEY `media_idx` (`mediaid`,`property`,`property_group`,`property_subgroup`),
KEY `mediapropid_idx` (`mediaid`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_options`
--
DROP TABLE IF EXISTS `serendipity_options`;
CREATE TABLE `serendipity_options` (
`name` varchar(255) NOT NULL,
`value` text NOT NULL,
`okey` varchar(64) NOT NULL default '',
KEY `options_idx` (`okey`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_permalinks`
--
DROP TABLE IF EXISTS `serendipity_permalinks`;
CREATE TABLE `serendipity_permalinks` (
`permalink` varchar(200) NOT NULL default '',
`entry_id` int(10) unsigned NOT NULL default '0',
`type` varchar(100) NOT NULL default '',
`data` text,
KEY `pl_idx` (`permalink`),
KEY `ple_idx` (`entry_id`),
KEY `plt_idx` (`type`),
KEY `plcomb_idx` (`permalink`,`type`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_plugincategories`
--
DROP TABLE IF EXISTS `serendipity_plugincategories`;
CREATE TABLE `serendipity_plugincategories` (
`class_name` varchar(150) default NULL,
`category` varchar(150) default NULL,
KEY `plugincat_idx` (`class_name`,`category`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_pluginlist`
--
DROP TABLE IF EXISTS `serendipity_pluginlist`;
CREATE TABLE `serendipity_pluginlist` (
`plugin_file` varchar(255) NOT NULL default '',
`class_name` varchar(255) NOT NULL default '',
`plugin_class` varchar(255) NOT NULL default '',
`pluginPath` varchar(255) NOT NULL default '',
`name` varchar(255) NOT NULL default '',
`description` text NOT NULL,
`version` varchar(12) NOT NULL default '',
`upgrade_version` varchar(12) NOT NULL default '',
`plugintype` varchar(255) NOT NULL default '',
`pluginlocation` varchar(255) NOT NULL default '',
`stackable` int(1) NOT NULL default '0',
`author` varchar(255) NOT NULL default '',
`requirements` text NOT NULL,
`website` varchar(255) NOT NULL default '',
`last_modified` int(11) NOT NULL default '0',
KEY `pluginlist_f_idx` (`plugin_file`),
KEY `pluginlist_cn_idx` (`class_name`),
KEY `pluginlist_pt_idx` (`plugintype`),
KEY `pluginlist_pl_idx` (`pluginlocation`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_plugins`
--
DROP TABLE IF EXISTS `serendipity_plugins`;
CREATE TABLE `serendipity_plugins` (
`name` varchar(128) NOT NULL,
`placement` varchar(6) NOT NULL default 'right',
`sort_order` int(4) NOT NULL default '0',
`authorid` int(11) default '0',
`path` varchar(255) default NULL,
PRIMARY KEY (`name`),
KEY `pluginauthorid_idx` (`authorid`),
KEY `pluginplace_idx` (`placement`),
KEY `pluginretr_idx` (`placement`,`sort_order`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_references`
--
DROP TABLE IF EXISTS `serendipity_references`;
CREATE TABLE `serendipity_references` (
`id` int(11) NOT NULL auto_increment,
`entry_id` int(10) unsigned NOT NULL default '0',
`link` text,
`name` text,
`type` varchar(128) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `refentry_idx` (`entry_id`),
KEY `reftype_idx` (`type`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_referrers`
--
DROP TABLE IF EXISTS `serendipity_referrers`;
CREATE TABLE `serendipity_referrers` (
`entry_id` int(11) NOT NULL default '0',
`day` date NOT NULL,
`count` int(11) NOT NULL default '0',
`scheme` varchar(5) default NULL,
`host` varchar(128) NOT NULL,
`port` varchar(5) default NULL,
`path` varchar(255) default NULL,
`query` varchar(255) default NULL,
PRIMARY KEY (`host`,`day`,`entry_id`),
KEY `referrers_idx` (`entry_id`,`day`)
) ENGINE=MyISAM;
-- --------------------------------------------------------
--
-- �ç���ҧ���ҧ `serendipity_suppress`
--
DROP TABLE IF EXISTS `serendipity_suppress`;
CREATE TABLE `serendipity_suppress` (
`ip` varchar(64) default NULL,
`scheme` varchar(5) default NULL,
`host` varchar(128) default NULL,
`port` varchar(5) default NULL,
`path` varchar(255) default NULL,
`query` varchar(255) default NULL,
`last` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
KEY `url_idx` (`host`,`ip`),
KEY `urllast_idx` (`last`)
) ENGINE=MyISAM;
Copyright 2K16 - 2K18 Indonesian Hacker Rulez