CREATE TABLE IF NOT EXISTS `pets` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `pet_id` int(10) NOT NULL DEFAULT '0',
  `time` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;

ALTER TABLE `users` ADD `rating` int(11) NOT NULL default '0';
ALTER TABLE `users` ADD `timeball` int(11) NOT NULL;
ALTER TABLE `users` ADD `rplus` int(11) NOT NULL;
ALTER TABLE `users` ADD `rminus` int(11) NOT NULL;
ALTER TABLE `users` ADD `goluser` int(11) NOT NULL;
ALTER TABLE `users` ADD `ball` int(11) NOT NULL;
ALTER TABLE `users` ADD `monetki` int(11) NOT NULL default '0';

CREATE TABLE IF NOT EXISTS `podarok` (
`id` int(11) NOT NULL auto_increment,
`user` int(11) NOT NULL,
`komu` int(11) NOT NULL,
`priz` text NOT NULL,
`text` text NOT NULL,
`time` int(11) NOT NULL,

PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8
