-- Deploy mimas-talos:talos_2020_05_19_add_api_diary_scan_record to mysql

BEGIN;

CREATE TABLE `api_diary_scan_record` (
  `id` int NOT NULL AUTO_INCREMENT,
  `diary_id` int NOT NULL,
  `before_img` varchar(300) NOT NULL,
  `after_img` varchar(300) NOT NULL,
  `nose` varchar(32) NOT NULL,
  `eye` varchar(32) NOT NULL,
  `lib` varchar(32) NOT NULL,
  `eyebrow` varchar(32) NOT NULL,
  `face` varchar(32) NOT NULL,
  `gender` varchar(32) NOT NULL,
  `age` int NOT NULL,
  `template` int NOT NULL,
  `created_time` datetime(6) NOT NULL,
  `updated_time` datetime(6) NOT NULL,
  PRIMARY KEY (`id`)
);

COMMIT;
