-- Deploy gaia:create_table_FunctionFeedback to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_function_feedback` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `user_id` BIGINT(20) NOT NULL COMMENT "用户id",
  `function` VARCHAR(128) NOT NULL DEFAULT "" COMMENT "功能名称",
  `question` VARCHAR(512) NOT NULL DEFAULT "" COMMENT "问题内容",
  `rank` INT(8) NOT NULL DEFAULT 0 COMMENT "反馈级别",
  `answer` VARCHAR(512) NOT NULL DEFAULT "" COMMENT "答案内容",
  `create_time` DATETIME NOT NULL DEFAULT "1970-01-01 00:00:00" COMMENT "创建时间",
  PRIMARY KEY (`id`),
  KEY `api_function_feedback_user_id` (`user_id`),
  KEY `api_function_feedback_function` (`function`)
) ENGINE=INNODB DEFAULT CHARSET=utf8mb4;

COMMIT;
