CREATE TABLE `likes` (
  `object` int(11) NOT NULL,
  `uid` bigint(20) NOT NULL,
  `like` int(1) NOT NULL,
  `date` datetime NOT NULL,
  UNIQUE KEY `likeunique` (`object`,`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8