/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 80042
 Source Host           : localhost:3306
 Source Schema         : ruoyi-fastapi

 Target Server Type    : MySQL
 Target Server Version : 80042
 File Encoding         : 65001

 Date: 28/06/2025 13:30:15
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for test_work_order
-- ----------------------------
DROP TABLE IF EXISTS `test_work_order`;
CREATE TABLE `test_work_order`  (
  `id` int(0) NOT NULL AUTO_INCREMENT COMMENT '工单ID',
  `test_work_order_group_id` int(0) NULL DEFAULT NULL COMMENT '工单分组',
  `test_eut_id` int(0) NULL DEFAULT NULL COMMENT '产品',
  `test_category_id` int(0) NULL DEFAULT NULL COMMENT '测试类别',
  `creator` int(0) NULL DEFAULT NULL COMMENT '创建人',
  `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` int(0) NULL DEFAULT NULL COMMENT '更新人',
  `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '工单名称',
  `test_item_id` int(0) NULL DEFAULT NULL COMMENT '测试单元',
  `tester_id` int(0) NULL DEFAULT NULL COMMENT '测试人',
  `reviewer_id` int(0) NULL DEFAULT NULL COMMENT '一审人',
  `second_tester_id` int(0) NULL DEFAULT NULL COMMENT '二审人',
  `third_tester_id` int(0) NULL DEFAULT NULL COMMENT '三审人',
  `tester_result` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '测试结果',
  `reviewer_result` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '一审结果',
  `second_tester_result` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '二审结果',
  `third_tester_result` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '三审结果',
  `test_status` int(0) NULL DEFAULT NULL COMMENT '测试状态',
  `test_step` int(0) NULL DEFAULT NULL COMMENT '测试步骤',
  `memo` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注说明',
  `expand_data` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '扩展字段',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '测试工单表' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
