CREATE TABLE
phpkb_articles
article_id
int(11) NOT NULL AUTO_INCREMENT,author_id
int(11) NOT NULL,article_title
varchar(250) NOT NULL,article_content
longtext NOT NULL,article_date_time
datetime NOT NULL,article_status
enum('approved', 'disapproved',article_show
enum('yes','no') NOT NULL DEFAULarticle_last_updation
datetime NOT NULL,article_keywords
varchar(250) NOT NULL,article_metadesc
varchar(250) NOT NULL,article_expiry_date
date NOT NULL,article_email_count
int(11) NOT NULL DEFAULTarticle_print_count
int(11) NOT NULL DEFAULTarticle_comments_allow
enum('yes','no') NOT Narticle_ratings_allow
enum('yes','no') NOT NU PRIMARY KEY (article_id
), FULLTEXT KEYarticle_title
(article_title
,`) ENGINE=MyISAM AUTO_INCREMENT=2872 DEFAULT CHARSCREATE TABLE
phpkb_relations
(relation_id
int(11) NOT NULL AUTO_INCREMENT,article_id
int(11) NOT NULL,category_id
int(11) NOT NULL, PRIMARY KEY (relation_id
) ) ENGINE=MyISAM AUTO_INCREMENT=21960 DEFAULT CHARSET=latin1CREATE TABLE
phpkb_article_visits
(visit_id
int(11) NOT NULL AUTO_INCREMENT,article_id
int(11) NOT NULL,article_hits
int(11) NOT NULL,visit_date
date NOT NULL, PRIMARY KEY (visit_id
) ) ENGINE=MyISAM AUTO_INCREMENT=342553 DEFAULT CHARSET=latin1
CREATE TABLE `phpkb_articles` (
`article_id` int(11) NOT NULL AUTO_INCREMENT,
`author_id` int(11) NOT NULL,
`article_title` varchar(250) NOT NULL,
`article_content` longtext NOT NULL,
`article_date_time` datetime NOT NULL,
`article_status`enum('approved','disapproved','draft','featured','pending','pending-deleted','approved-deleted','featured-deleted','disapproved-deleted') NOT NULL DEFAULT 'pending',
`article_show` enum('yes','no') NOT NULL DEFAULT 'no',
`article_last_updation` datetime NOT NULL,
`article_keywords` varchar(250) NOT NULL,
`article_metadesc` varchar(250) NOT NULL,
`article_expiry_date` date NOT NULL,
`article_email_count` int(11) NOT NULL DEFAULT '0',
`article_print_count` int(11) NOT NULL DEFAULT '0',
`article_comments_allow` enum('yes','no') NOT NULL DEFAULT 'yes',
`article_ratings_allow` enum('yes','no') NOT NULL DEFAULT 'yes',
PRIMARY KEY (`article_id`),
FULLTEXT KEY `article_title` (`article_title`,`article_content`)
) ENGINE=MyISAM AUTO_INCREMENT=2872 DEFAULT CHARSET=utf8
CREATE TABLE `phpkb_relations` (
`relation_id` int(11) NOT NULL AUTO_INCREMENT,
`article_id` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
PRIMARY KEY (`relation_id`)
) ENGINE=MyISAM AUTO_INCREMENT=21960 DEFAULT CHARSET=latin1
CREATE TABLE `phpkb_article_visits` (
`visit_id` int(11) NOT NULL AUTO_INCREMENT,
`article_id` int(11) NOT NULL,
`article_hits` int(11) NOT NULL,
`visit_date` date NOT NULL,
PRIMARY KEY (`visit_id`)