-- Deploy gaia:api_2018_05_05_create_table_indexfeed to mysql

BEGIN;

CREATE TABLE `api_indexfeed` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `ordering` integer NOT NULL,
    `loading` varchar(2) NOT NULL,
    `card` varchar(2) NOT NULL,
    `user_type` varchar(2) NOT NULL,
    `is_online` bool NOT NULL,
    `created_time` datetime(6) NOT NULL,
    UNIQUE (`ordering`, `loading`, `user_type`)
)
;

COMMIT;
