-- Deploy gaia:api_2016_01_21_create_table_gadget to mysql

BEGIN;

CREATE TABLE `api_gadget`
(
  `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `page_type` integer NOT NULL,
  `template_type` integer NOT NULL,
  `title` varchar(256) NOT NULL,
  `title_visible` bool NOT NULL,
  `ordering` integer NOT NULL,
  `start_time` datetime NOT NULL,
  `end_time` datetime NOT NULL,
  `created_time` datetime NOT NULL,
  `is_online` bool NOT NULL,
  `image_data` text NOT NULL
);

COMMIT;