-- Deploy gaia:doctor_2016_08_04_create_table_doctor_doctorstafflogin to mysql

BEGIN;

CREATE TABLE `doctor_doctorstafflogin` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `person_id` char(32) NOT NULL UNIQUE,
    `can_login` bool NOT NULL
)
;
ALTER TABLE `doctor_doctorstafflogin` ADD CONSTRAINT `person_id_refs_id_c48111ad` FOREIGN KEY (`person_id`) REFERENCES `api_person` (`id`);
COMMIT;
