-- dependson: social_add_table_feed_2015_08_27.sql
-- model: social.models.FeedItemReason
-- description: add new table
-- author: Pengfei.X
-- date: 2015.08.27 20:00:00

BEGIN;

CREATE TABLE social_feeditemreason (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `feed_id` int(11) NOT NULL,
  `feed_reason` varchar(1) NOT NULL,
  `action_item_id` int(11) DEFAULT NULL,
  `follow_uid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  FOREIGN KEY (`feed_id`) REFERENCES social_feed(`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

COMMIT;
