-- Deploy gaia:api_2020_09_02_create_table_api_skin_result_extra to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_skin_result_extra` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY COMMENT 'id',
    `result_id` integer NOT NULL COMMENT '测肤结果id',
    `send_msg` bool NOT NULL DEFAULT false COMMENT '是否发过私信',
    `created_time` datetime(6) NOT NULL COMMENT '创建时间',
    `updated_time` datetime(6) NOT NULL COMMENT '更新时间'
)ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 comment='测肤结果额外信息';
ALTER TABLE `api_skin_result_extra` ADD INDEX `idx_api_skin_result_extra_a25dd9c8` (`result_id`);

COMMIT;
