-- Deploy gaia:api_2019_09_21_create_table_store_classification to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_storeclassification` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `name` varchar(128) NOT NULL,
    `doctor_id` varchar(100) NOT NULL,
    `rank` integer NOT NULL,
    `created_time` datetime(6) NOT NULL
)
;
ALTER TABLE `api_storeclassification` ADD CONSTRAINT `doctor_id_refs_id_e2272eed` FOREIGN KEY (`doctor_id`) REFERENCES `api_doctor` (`id`);
COMMIT;
