alter  table  `user`  add  `dopusk_snachki` enum('0','1') NOT NULL default '0';
CREATE TABLE IF NOT EXISTS `znachki` (
  `id` int(11) NOT NULL AUTO_INCREMENT,

  `url` varchar(150) NOT NULL,

  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=122 ;


CREATE TABLE IF NOT EXISTS `user_znachki` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
   `user_id` varchar(150) NOT NULL,
  `url` varchar(150) NOT NULL,
  `id_znac` varchar(150) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=cp1251 AUTO_INCREMENT=122 ;
