-- Deploy gaia:api_2015_10_15_create_table_api_smallimage to mysql

BEGIN;

CREATE TABLE `api_smallimage` (
	  `id` int(11) NOT NULL AUTO_INCREMENT,
	  `image` varchar(1024) NOT NULL,
	  `url` varchar(1024) DEFAULT NULL,
	  `ordering` int(11) NOT NULL,
	  `created_time` datetime(6) NOT NULL,
	  `effect_time` datetime(6) DEFAULT NULL,
	  `end_time` datetime(6) DEFAULT NULL,
	  `is_online` tinyint(1) NOT NULL,
	  `diary_id` int(11) DEFAULT NULL,
	  `service_id` int(11) DEFAULT NULL,
	  `special_id` int(11),
	  `topic_id` int(11),
	  `zone_single_id` int(11),
	  `title` varchar(128) DEFAULT NULL,
	  PRIMARY KEY (`id`)
);

COMMIT;
