-- Deploy gaia:api_2019_10_29_skin_add_conf_table to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_skin_act_wrinkle` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `state` integer NOT NULL,
    `analysis` varchar(256) NOT NULL,
    `polymer_id` integer NOT NULL,
    `community_content` varchar(64) NOT NULL,
    `service_content` varchar(64) NOT NULL,
    `is_online` bool NOT NULL,
    `created_time` datetime(6) NOT NULL,
    `updated_time` datetime(6) NOT NULL
);

CREATE TABLE `api_skin_eye_bag` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `state` integer NOT NULL,
    `analysis` varchar(256) NOT NULL,
    `polymer_id` integer NOT NULL,
    `community_content` varchar(64) NOT NULL,
    `service_content` varchar(64) NOT NULL,
    `is_online` bool NOT NULL,
    `created_time` datetime(6) NOT NULL,
    `updated_time` datetime(6) NOT NULL
);
COMMIT;
