-- Deploy mimas-talos:2018-04-1_add_recommend_score_tables to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `biz_resys_diary_portrait` (
  `diary_id` int(11) NOT NULL,
  `profit_score` double NOT NULL,
  `content_score` int(11) DEFAULT NULL,
  `time_score` double DEFAULT NULL,
  `score` double DEFAULT NULL,
  PRIMARY KEY (`diary_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `biz_resys_article_portrait` (
  `id` int(11) NOT NULL,
  `time_score` double DEFAULT NULL,
  `score` double DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


COMMIT;
