CREATE TABLE IF NOT EXISTS `ban` (
  `id` int(11) NOT NULL auto_increment,
  `user` int(11) NOT NULL,
  `t1` int(11) NOT NULL,
  `t2` int(11) NOT NULL,
  `komm` text NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


CREATE TABLE IF NOT EXISTS `chat` (
  `id` int(11) NOT NULL auto_increment,
  `autor` int(11) NOT NULL,
  `time` int(11) NOT NULL,
  `msg` text NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE IF NOT EXISTS `fb` (
  `id` int(11) NOT NULL auto_increment,
  `autor` int(11) NOT NULL,
  `msg` text NOT NULL,
  `time` int(11) NOT NULL,
  `otv` text NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;

CREATE TABLE IF NOT EXISTS `g` (
  `id` int(11) NOT NULL auto_increment,
  `ua` text NOT NULL,
  `ip` text NOT NULL,
  `sess` text NOT NULL,
  `time` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ;


CREATE TABLE IF NOT EXISTS `logs` (
  `id` int(11) NOT NULL auto_increment,
  `user` int(11) NOT NULL,
  `uin` int(11) NOT NULL,
  `time` int(11) NOT NULL,
  `price` int(11) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `user` (`user`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;

CREATE TABLE IF NOT EXISTS `mail` (
  `id` int(11) NOT NULL auto_increment,
  `u1` int(11) NOT NULL,
  `u2` int(11) NOT NULL,
  `msg` text NOT NULL,
  `time` int(11) NOT NULL,
  `read` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  KEY `u1` (`u1`,`u2`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8  ;

CREATE TABLE IF NOT EXISTS `news` (
  `id` int(11) NOT NULL auto_increment,
  `title` text NOT NULL,
  `text` text NOT NULL,
  `time` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;

CREATE TABLE IF NOT EXISTS `n_komm` (
  `id` int(11) NOT NULL auto_increment,
  `nid` int(11) NOT NULL,
  `autor` int(11) NOT NULL,
  `time` int(11) NOT NULL,
  `msg` text NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `nid` (`nid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;

CREATE TABLE IF NOT EXISTS `rekl` (
  `id` int(11) NOT NULL auto_increment,
  `place` tinyint(4) NOT NULL default '1',
  `link` text NOT NULL,
  `pos` tinyint(4) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `place` (`place`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;


CREATE TABLE IF NOT EXISTS `set` (
  `site_name` text NOT NULL,
  `k_p_s` tinyint(4) NOT NULL default '10',
  `kosh` text NOT NULL,
  `min` tinyint(4) NOT NULL default '10',
  `s_new` tinyint(4) NOT NULL,
  `sort` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
--    `set`
--

INSERT INTO `set` (`site_name`, `k_p_s`, `kosh`, `min`, `s_new`, `sort`) VALUES
('ICQ ', 8, '', 10, 1, 'time DESC');

CREATE TABLE IF NOT EXISTS `uins` (
  `id` int(11) NOT NULL auto_increment,
  `type` tinyint(4) NOT NULL,
  `num` int(11) NOT NULL,
  `pass` text NOT NULL,
  `status` text NOT NULL,
  `price` float NOT NULL,
  `komm` text NOT NULL,
  `time` int(11) NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `type` (`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC ;

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) NOT NULL auto_increment,
  `pass` text NOT NULL,
  `nick` text NOT NULL,
  `sess` text NOT NULL,
  `ua` text NOT NULL,
  `ip` text NOT NULL,
  `time` int(11) NOT NULL,
  `email` text NOT NULL,
  `date_reg` int(11) NOT NULL,
  `name` text NOT NULL,
  `icq` text NOT NULL,
  `site` text NOT NULL,
  `home` text NOT NULL,
  `about` text NOT NULL,
  `pol` tinyint(4) NOT NULL,
  `adm` tinyint(4) NOT NULL default '0',
  `rub` float NOT NULL default '0',
  `kosh` text NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;


CREATE TABLE IF NOT EXISTS `vvod` (
  `id` int(11) NOT NULL auto_increment,
  `user` int(11) NOT NULL,
  `suma` int(11) NOT NULL,
  `time` int(11) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;