-- Deploy gaia:api_2020_05_08_create_table_skin_type to mysql

BEGIN;

CREATE TABLE `api_skin_type` (
  `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `type_content` integer NOT NULL,
  `type_value` integer NOT NULL,
  `type_image` varchar(256) NOT NULL,
  `type_image_desc` varchar(256) 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` tinyint(1) NOT NULL,
  `created_time` datetime(6) NOT NULL,
  `updated_time` datetime(6) NOT NULL,
  `seriousness` varchar(256) NOT NULL DEFAULT ''
);

CREATE TABLE `api_blackhead_pore_type` (
  `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `blackhead_level` integer NOT NULL,
  `pore_level` 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` tinyint(1) NOT NULL,
  `created_time` datetime(6) NOT NULL,
  `updated_time` datetime(6) NOT NULL,
  `seriousness` varchar(256) NOT NULL DEFAULT ''
);

COMMIT;
