DROP TABLE IF EXISTS `project_test_report`;

CREATE TABLE `project_test_report` (
  `id` varchar(32) COLLATE utf8mb4_bin NOT NULL,
  `report_name` varchar(300) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '报告名称',
  `html_url` varchar(200) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '报告html地址',
  `doc_url` varchar(200) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '报告doc地址',
  `pdf_url` varchar(200) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '报告pdf地址',
  `report_state` int(1) NOT NULL DEFAULT '1' COMMENT '报告生成状态：1.生成中，2.成功，3.失败',
  `memo` varchar(200) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '失败原因',
  `project_id` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '项目id',
  `report_type` int(11) NOT NULL COMMENT '报告类型：1.日报，2.周报，3.总体测试报告',
  `created_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL,
  `created_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL,
  `updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `is_deleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT '删除：0未删除，1删除',
  `tenant_id` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT '租户id',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC COMMENT='总体测试报告列表';