-- Deploy gaia:2020_05_19_custom_ad_buy to mysql

BEGIN;

CREATE TABLE `hippo_customadhospital` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `hospital_id` varchar(100)
)
;
ALTER TABLE `hippo_customadhospital` ADD CONSTRAINT `hospital_id_refs_id_waz4md9w` FOREIGN KEY (`hospital_id`) REFERENCES `api_hospital` (`id`);

CREATE TABLE `hippo_customadteam` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `business_group` integer NOT NULL
)
;
CREATE INDEX `hippo_customadhospital_d616cd8b` ON `hippo_customadhospital` (`hospital_id`);

COMMIT;
