-- Deploy gaia:2017_06_16_alter_table_userextra_add_column_is_push_checkin to mysql

BEGIN;

-- XXX Add DDLs here.

CREATE TABLE `api_usercheckinlog` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `user_id` integer NOT NULL,
    `create_time` datetime(6) NOT NULL
)
;
ALTER TABLE `api_usercheckinlog` ADD CONSTRAINT `user_id_refs_id_abdab365` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`);

COMMIT;
