CREATE TABLE `m3_mp3` (
  `id` int(6) unsigned NOT NULL auto_increment,
  `active` tinyint(1) default NULL,
  `artist` text,
  `track` text,
  `uploader` text,
  `date` date default NULL,
  `count` int(9) default '0',
  `ip` text,
  `size` text,
  `notice` text,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM;

CREATE TABLE `m3_users` (
  `id` int(6) unsigned NOT NULL auto_increment,
  `login` varchar(15) NOT NULL default '',
  `passwd` varchar(32) NOT NULL default '',
  `fname` varchar(20) default NULL,
  `age` tinyint(2) default NULL,
  `city` varchar(30) default NULL,
  `mail` varchar(40) NOT NULL default '',
  `mail_chk` tinyint(1) NOT NULL default '0',
  `icq` int(9) NOT NULL default '0',
  `ip` varchar(15) default NULL,
  `access` tinyint(1) NOT NULL default '0',
  `www` varchar(80) default NULL,
  `key` varchar(32) NOT NULL default '0',
  `date` varchar(10) default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;


CREATE TABLE `m3_ban` (
  `id` int(6) unsigned NOT NULL auto_increment,
  `ip` text,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM;

CREATE TABLE `m3_guest` (
  `id` int(6) unsigned NOT NULL auto_increment,
  `nick` text,
  `mail` text,
  `icq` text,
  `ip` text,
  `text` text,
  `date` text,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

CREATE TABLE `m3_comments` (
  `id` int(6) unsigned NOT NULL auto_increment,
  `id_mp3` text,
  `nick` text,
  `mail` text,
  `icq` text,
  `ip` text,
  `text` text,
  `date` text,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

CREATE TABLE `m3_answer` (
  `id` int(6) unsigned NOT NULL auto_increment,
  `answer` text,
  `counter` int(11) default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

CREATE TABLE `m3_question` (
  `question` text,
  `id` int(6) unsigned NOT NULL auto_increment,
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

CREATE TABLE `m3_voite_ip` (
  `ip` text NOT NULL
) TYPE=MyISAM;


CREATE TABLE `ip_to_country` (
  `ID` int(4) NOT NULL auto_increment,
  `ip_from` decimal(18,0) default NULL,
  `ip_to` decimal(18,0) default NULL,
  `c2` varchar(255) default NULL,
  `c3` varchar(255) default NULL,
  `country` varchar(255) default NULL,
  PRIMARY KEY  (`ID`)
) TYPE=MyISAM;


CREATE TABLE `m3_sms` (
  `id` int(6) unsigned NOT NULL auto_increment,
  `to` varchar(15) NOT NULL default '',
  `from` varchar(15) NOT NULL default '',
  `date` varchar(10) NOT NULL default '',
  `ip` varchar(15) default NULL,
  `subject` varchar(50) default NULL,
  `message` text,
  `read` tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;
