-- Deploy gaia:2019-08-21-add_skin_result_model to mysql

BEGIN;

CREATE TABLE `api_skin_result` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `total_score` varchar(30) NOT NULL,
    `equilibrium` varchar(30) NOT NULL,
    `health` varchar(30) NOT NULL,
    `smooth` varchar(30) NOT NULL,
    `tolerance` varchar(30) NOT NULL,
    `uniform` varchar(30) NOT NULL,
    `young` varchar(30) NOT NULL,
    `gender` varchar(1) NOT NULL,
    `skin_age` varchar(30) NOT NULL,
    `skin_color_level` varchar(30) NOT NULL,
    `skin_color_desc` varchar(30) NOT NULL,
    `skin_color_temperature` varchar(30) NOT NULL,
    `oil_level` varchar(30) NOT NULL,
    `blackhead_number` varchar(30) NOT NULL,
    `blackhead_severity` varchar(30) NOT NULL,
    `tzone_oil_shine` varchar(30) NOT NULL,
    `cheek_oil_shine` varchar(30) NOT NULL,
    `chin_oil_shine` varchar(30) NOT NULL,
    `pore_severity` varchar(30) NOT NULL,
    `coarseness` varchar(30) NOT NULL,
    `pigmental` varchar(30) NOT NULL,
    `vascular` varchar(30) NOT NULL,
    `structural` varchar(30) NOT NULL,
    `severity` varchar(30) NOT NULL,
    `acne_json` longtext NOT NULL,
    `acne_severity` varchar(30) NOT NULL,
    `acne_desc` varchar(30) NOT NULL,
    `short_oil_level_advice` longtext NOT NULL,
    `short_coarseness_advice` longtext NOT NULL,
    `short_blackhead_advice` longtext NOT NULL,
    `short_acne_advice` longtext NOT NULL,
    `short_dark_circle_advice` longtext NOT NULL,
    `image_url` varchar(80) NOT NULL,
    `device_id` varchar(100) NOT NULL,
    `user_id` integer NOT NULL,
    `created_time` datetime(6) NOT NULL,
    `updated_time` datetime(6) NOT NULL
);

COMMIT;
