-- Deploy gaia:api_2017_04_05_add_markuser to mysql

BEGIN;

CREATE TABLE `api_markuser` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `user_id` integer NOT NULL,
    `target_user_id` integer NOT NULL,
    `comment` varchar(100),
    `last_modified` datetime(6) NOT NULL
)
;
ALTER TABLE `api_markuser` ADD CONSTRAINT `user_id_refs_id_77f208ba` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`);
ALTER TABLE `api_markuser` ADD CONSTRAINT `target_user_id_refs_id_77f208ba` FOREIGN KEY (`target_user_id`) REFERENCES `auth_user` (`id`);

COMMIT;
