CREATE TABLE `mini_chat` (
  `id` int(11) NOT NULL auto_increment,
  `id_user` int(11) NOT NULL default '0',
  `time` int(11) NOT NULL,
  `msg` varchar(10024) character set utf8 collate utf8_unicode_ci default NULL,
  `fon` int(3) DEFAULT '31',
  `cit` int(11) DEFAULT NULL,
  PRIMARY KEY  (`id`),
  KEY `time` (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `mini_chat_layp` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_user` int(11) NOT NULL DEFAULT '0',
  `time` int(11) NOT NULL,
  `dir` varchar(12) DEFAULT NULL,
  `img` int(11) DEFAULT '1',
  `margin_left` int(11) DEFAULT '0',
  `id_post` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;