-- Deploy gaia:doctor_2017_09_05_add_bulletinread to mysql

BEGIN;

CREATE TABLE `doctor_bulletinread` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `doctor_id` varchar(100) NOT NULL,
    `bulletin_id` integer NOT NULL,
    UNIQUE (`doctor_id`, `bulletin_id`)
);
ALTER TABLE `doctor_bulletinread` ADD CONSTRAINT `bulletin_id_refs_id_2d41e33a` FOREIGN KEY (`bulletin_id`) REFERENCES `doctor_bulletin` (`id`);

COMMIT;
