CREATE TABLE `slaed_icomments` (
  `id` int(11) NOT NULL auto_increment,
  `iid` int(11) NOT NULL default '0',
  `uid` int(11) NOT NULL default '0',
  `author` varchar(50) NOT NULL default '',
  `cdate` int(11) NOT NULL default '0',
  `text` text NOT NULL,
  `ip` varchar(15) NOT NULL default '',
  `email` varchar(50) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;

CREATE TABLE `slaed_ideas` (
  `id` int(11) NOT NULL auto_increment,
  `title` varchar(200) NOT NULL default '',
  `desc` text NOT NULL,
  `author` varchar(50) NOT NULL default '',
  `mail` varchar(50) NOT NULL default '',
  `ip` varchar(15) NOT NULL default '',
  `uid` int(11) NOT NULL default '0',
  `date` int(11) NOT NULL default '0',
  `karma` int(11) NOT NULL default '0',
  `comments` int(11) NOT NULL default '0',
  `status` tinyint(1) NOT NULL default '0',
  `close` int(11) NOT NULL default '1',
  `reason` varchar(200) NOT NULL default '',
  `totalvote` int(11) NOT NULL default '0',
  `answer` text NOT NULL,
  `responder` varchar(200) NOT NULL default '',
  `timeanswer` int(11) NOT NULL default '0',
  `whoclose` varchar(200) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;

CREATE TABLE `slaed_irating` (
  `id` int(11) NOT NULL auto_increment,
  `iid` int(11) NOT NULL default '0',
  `time` int(11) NOT NULL default '0',
  `name` varchar(200) NOT NULL default '',
  `host` varchar(15) default NULL,
  PRIMARY KEY  (`id`),
  KEY `iid` (`iid`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
        