DROP TABLE IF EXISTS `comment_comments`;
CREATE TABLE IF NOT EXISTS `comment_comments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userId` int(11) NOT NULL,
  `parentId` int(11) NOT NULL,
  `objectId` int(11) NOT NULL,
  `entity` varchar(150) NOT NULL,
  `url` varchar(250) NOT NULL,
  `name` varchar(250) NOT NULL,
  `email` varchar(250) NOT NULL,
  `content` text NOT NULL,
  `status` enum('Enabled','Disabled','Pending') NOT NULL DEFAULT 'Pending',
  `created` datetime DEFAULT NULL,
  `updated` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `status` (`status`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=26 ;

DROP TABLE IF EXISTS `comment_settings`;
CREATE TABLE IF NOT EXISTS `comment_settings` (
  `entity` varchar(250) NOT NULL,
  `objectId` int(11) NOT NULL,
  `key` varchar(150) NOT NULL,
  `value` varchar(250) NOT NULL,
  KEY `entity` (`entity`),
  KEY `objectId` (`objectId`),
  KEY `key` (`key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;