-- Deploy gaia:api_2017_03_07_create_table_friendlysite_innerhyperlink to mysql

BEGIN;

CREATE TABLE `api_friendlysite` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `site_name` varchar(32) NOT NULL,
    `site_url` varchar(128) NOT NULL,
    `is_online` bool NOT NULL
);
CREATE TABLE `api_innerhyperlink` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `name` varchar(32) NOT NULL,
    `url` varchar(128) NOT NULL
);

COMMIT;
