-- Deploy gaia:api_2017_05_09_add_doctoragreement to mysql

BEGIN;

CREATE TABLE `api_doctoragreement` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `doctor_id` varchar(100) NOT NULL,
    `image_url` varchar(256) NOT NULL
);
ALTER TABLE `api_doctoragreement` ADD CONSTRAINT `doctor_id_refs_id_936dddbb` FOREIGN KEY (`doctor_id`) REFERENCES `api_doctor` (`id`);

COMMIT;
