-- Deploy gaia:create_table_api_doctorwhitelist to mysql
-- 退款医生白名单

BEGIN;

CREATE TABLE `api_doctorwhitelist` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `doctor_id`  VARCHAR(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `api_doctorwhitelist` ADD CONSTRAINT `api_doctorwhitelist_doctor_id_ref_api_doctor` FOREIGN KEY (`doctor_id`) REFERENCES `api_doctor` (`id`) ON DELETE CASCADE;

COMMIT;
