-- Deploy gaia:api_2017_03_14_create_table_user_homepage to mysql

BEGIN;

-- XXX Add DDLs here.

CREATE TABLE `api_user_home_page` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `user_id` integer NOT NULL UNIQUE,
    `home_page` integer NOT NULL
)
;
ALTER TABLE `api_user_home_page` ADD CONSTRAINT `user_id_refs_id_d3477b7d` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`);
COMMIT;
