rt-sim-training-service/sql/20220921-zhouyin.sql

17 lines
1.5 KiB
MySQL
Raw Normal View History

2022-09-21 17:26:58 +08:00
-- 新题库
2022-09-27 14:20:29 +08:00
DROP TABLE IF EXISTS `paper_question`;
CREATE TABLE `paper_question` (
2022-09-21 17:26:58 +08:00
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
`type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '类型 选择题=select,判断题=judge,多选题=multi',
2022-09-27 14:20:29 +08:00
`question` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '问题内容',
2022-09-21 17:26:58 +08:00
`create_user_id` bigint DEFAULT NULL COMMENT '创建者id',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`project_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '项目code',
`company_id` bigint DEFAULT NULL COMMENT '公司组织id',
`race_lable` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '标签',
2022-09-27 14:20:29 +08:00
`question_option` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci COMMENT '问题选项',
`question_answer` varchar(255) DEFAULT NULL COMMENT '答案,号隔开',
`is_del` int DEFAULT '0' COMMENT '是否删除0=否1=是',
2022-09-21 17:26:58 +08:00
PRIMARY KEY (`id`)
2022-09-27 14:20:29 +08:00
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;