-- Deploy gaia:api_2017_04_11_create_table_userinnerinfo to mysql

BEGIN;

CREATE TABLE `api_userinnerinfo` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `phone` varchar(20),
    `name` varchar(30),
    `user_id` integer NOT NULL UNIQUE
);
ALTER TABLE `api_userinnerinfo` ADD CONSTRAINT `user_id_refs_id_1b5a469a` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`);

COMMIT;
