View file user/money/best/best_anketa.sql

File size: 771B
CREATE TABLE IF NOT EXISTS `best_anketa` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_user` int(11) NOT NULL,
  `time` int(11) NOT NULL,
  `time_days` int(11) NOT NULL,
  `sex` enum('0','1') NOT NULL DEFAULT '0',
  `suspend_best` enum('0','1') NOT NULL DEFAULT '0',
  `notification_time_ocenka` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id_user` (`id_user`),
KEY `time` (`time`,`time_days`),
KEY `sex` (`sex`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=0;
ALTER TABLE `user` ADD `notification_ocenka` enum('0','1') NOT NULL DEFAULT '0';
CREATE TABLE IF NOT EXISTS `best_admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `money` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=0;