-- dependson: None
-- model: social.models.Feed
-- description: add new table
-- author: Pengfei.X
-- date: 2015.08.27 20:00:00

BEGIN;

CREATE TABLE social_feed (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `item_id` int(11) NOT NULL,
  `item_type` varchar(1) NOT NULL,
  `feed_reason` varchar(1) NOT NULL,
  `add_time` datetime(6) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uniq_social_feed_uid_item_id` (`uid`,`item_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

COMMIT;
