-- Deploy gaia:hippo_2018_10_12_hospital_index_revised to mysql

BEGIN;

-- XXX Add DDLs here.
ALTER TABLE `hippo_hospital_extra` ADD COLUMN `honor_introduction` varchar(3000) default '';

ALTER TABLE `hippo_hospital_extra` ADD COLUMN `bed_count` INTEGER default null;

ALTER TABLE `hippo_hospital_extra` ADD COLUMN `department_count` INTEGER default null;

CREATE TABLE `hippo_hospital_rest_assured` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `hospital_id` varchar(100) NOT NULL,
    `escort` bool NOT NULL,
    `one_to_one_consulation` bool NOT NULL,
    `regular_return_visit` bool NOT NULL
)
;
ALTER TABLE `hippo_hospital_rest_assured` ADD CONSTRAINT `hospital_id_refs_id_10dce3e6` FOREIGN KEY (`hospital_id`) REFERENCES `api_hospital` (`id`);
CREATE TABLE `hippo_hospital_special_service` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `hospital_id` varchar(100) NOT NULL,
    `wifi` bool NOT NULL,
    `independent_treatment_room` bool NOT NULL,
    `dressing_room` bool NOT NULL,
    `free_parking_space` bool NOT NULL,
    `paid_parking` bool NOT NULL,
    `smoking_room` bool NOT NULL,
    `free_drink` bool NOT NULL,
    `free_snack` bool NOT NULL,
    `swip` bool NOT NULL
)
;
ALTER TABLE `hippo_hospital_special_service` ADD CONSTRAINT `hospital_id_refs_id_7e6f6a2f` FOREIGN KEY (`hospital_id`) REFERENCES `api_hospital` (`id`);




COMMIT;
