-- dependson: None
-- model: api.models.Campaign
-- author: Pengfei.X
-- date: 2015.08.31 14:00:00
-- description: add table api_campaign

BEGIN;

CREATE TABLE api_campaign (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  `online_time` datetime DEFAULT NULL,
  `banner` varchar(120) NOT NULL,
  `title` varchar(128) NOT NULL,
  `subtitle` varchar(128) NOT NULL,
  `rule` longtext CHARACTER SET utf8mb4 NOT NULL,
  `offline_time` datetime DEFAULT NULL,
  `status` int(11) NOT NULL,
  `is_coupons` tinyint(1) NOT NULL,
  `is_seckill` tinyint(1) NOT NULL,
  `is_special` tinyint(1) NOT NULL,
  `is_overflow` tinyint(1) NOT NULL,
  `is_online` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

COMMIT;
