-- Deploy gaia:register_2016_08_create_table_for_api_registerorganization to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_registerorganization_image` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `image_url` varchar(256) NOT NULL,
    `doctor_id` integer NOT NULL
)
;
ALTER TABLE `api_registerorganization_image` ADD CONSTRAINT `doctor_id_refs_id_ae5213a5` FOREIGN KEY (`doctor_id`) REFERENCES `doctor_doctorregister` (`id`);
COMMIT;
