From 5b00f7ce8c95b934e0c55695e734a052ace4ecb7 Mon Sep 17 00:00:00 2001 From: Hankin Date: Wed, 14 May 2025 16:03:17 +0800 Subject: [PATCH] exam --- 1747187593_create_exam_carousel.up.sql | 9 +++++++++ 1747189345_table_exam_paper_add_pic.up.sql | 9 +++++++++ 1747204202_create_exam_paper_category.up.sql | 7 +++++++ 3 files changed, 25 insertions(+) create mode 100644 1747187593_create_exam_carousel.up.sql create mode 100644 1747189345_table_exam_paper_add_pic.up.sql create mode 100644 1747204202_create_exam_paper_category.up.sql diff --git a/1747187593_create_exam_carousel.up.sql b/1747187593_create_exam_carousel.up.sql new file mode 100644 index 0000000..5eda563 --- /dev/null +++ b/1747187593_create_exam_carousel.up.sql @@ -0,0 +1,9 @@ +CREATE TABLE `ufutx_exam_carousel` ( + `id` BIGINT NOT NULL AUTO_INCREMENT , + `name` varchar(50) NOT NULL COMMENT "名称", + `pic` varchar(255) NOT NULL COMMENT "图片", + `path` varchar(255) NOT NULL COMMENT "链接", + `created_at` TIMESTAMP NULL DEFAULT NULL , + `updated_at` TIMESTAMP NULL DEFAULT NULL , + PRIMARY KEY (`id`) +) ENGINE = InnoDB COMMENT = '轮播图'; \ No newline at end of file diff --git a/1747189345_table_exam_paper_add_pic.up.sql b/1747189345_table_exam_paper_add_pic.up.sql new file mode 100644 index 0000000..2aa32ab --- /dev/null +++ b/1747189345_table_exam_paper_add_pic.up.sql @@ -0,0 +1,9 @@ +ALTER TABLE `ufutx_exam_paper` +ADD COLUMN `resit_end_time` timestamp null DEFAULT null COMMENT "补考结束时间" after `end_time`, +ADD COLUMN `resit_start_time` timestamp null DEFAULT null COMMENT "补考开始时间" after `end_time`, +ADD COLUMN `qrcode` varchar(255) DEFAULT null COMMENT "二维码" after `score_time`, +ADD COLUMN `details` text DEFAULT null COMMENT "详情" after `title`, +ADD COLUMN `intro` varchar(255) DEFAULT null COMMENT "简介" after `title`, +ADD COLUMN `pic` varchar(255) NOT NULL COMMENT "图片" after `title`, +ADD COLUMN `category_id` int DEFAULT 0 COMMENT "分类id" after `id` + diff --git a/1747204202_create_exam_paper_category.up.sql b/1747204202_create_exam_paper_category.up.sql new file mode 100644 index 0000000..9d426b5 --- /dev/null +++ b/1747204202_create_exam_paper_category.up.sql @@ -0,0 +1,7 @@ +CREATE TABLE `ufutx_exam_paper_category` ( + `id` BIGINT NOT NULL AUTO_INCREMENT , + `name` varchar(50) NOT NULL COMMENT "名称", + `created_at` TIMESTAMP NULL DEFAULT NULL , + `updated_at` TIMESTAMP NULL DEFAULT NULL , + PRIMARY KEY (`id`) +) ENGINE = InnoDB COMMENT = '试卷分类'; \ No newline at end of file