CREATE TABLE ?_lc_chat (
  `id` int(11) NOT NULL auto_increment,
  `login` varchar(20) NOT NULL default '',
  `text` text NOT NULL,
  `time` time NOT NULL default '00:00:00',
  `info` tinyint(4) NOT NULL default '0',
  `moderator` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;

CREATE TABLE ?_lc_chat_online (
  `login` varchar(20) NOT NULL,
  `user_id` int(11) NOT NULL default '0',
  `time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;