-- Deploy gaia:doctor_2016_11_8_doctor_quick_replay_init to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `doctor_quickreplay`(
    `id` integer not null AUTO_INCREMENT,
    `doctor_id` VARCHAR(100) not null,
    `content` varchar(300) character set utf8mb4 collate utf8mb4_unicode_ci not null,
    `stick_time` datetime(6) not null,
    `deleted` bool not null default False,
    PRIMARY KEY (`id`)
)
;

ALTER TABLE doctor_quickreplay add CONSTRAINT `doctor_quickreplay_doctor_refs_api_doctor_id` FOREIGN KEY (`doctor_id`) references `api_doctor` (`id`);

COMMIT;
