-- Deploy gaia:2016_11_19_create_hospital_list to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_period_hospital` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `hospital_id` varchar(100) NOT NULL UNIQUE,
    `period_id` varchar(64) NOT NULL UNIQUE
)
;
ALTER TABLE `api_period_hospital` ADD CONSTRAINT `hospital_id_refs_id_d1510d1f` FOREIGN KEY (`hospital_id`) REFERENCES `api_hospital` (`id`);

COMMIT;
