migrate/1744769109_create_exam_answer.up.sql
2025-04-17 10:28:02 +08:00

12 lines
541 B
SQL

CREATE TABLE `ufutx_exam_answer` (
`id` BIGINT NOT NULL AUTO_INCREMENT ,
`paper_id` int NOT NULL COMMENT "试卷id",
`user_id` int NOT NULL COMMENT "用户id",
`question_id` text NOT NULL COMMENT "问题id",
`option_id` text NOT NULL COMMENT "选项id, 1,2,3",
`number` text NOT NULL COMMENT "编号 A,B,C,D",
`score` text NOT NULL COMMENT "分数",
`created_at` TIMESTAMP NULL DEFAULT NULL ,
`updated_at` TIMESTAMP NULL DEFAULT NULL ,
PRIMARY KEY (`id`)
) ENGINE = InnoDB COMMENT = '测试结果';