From 892196a827e2423587571bb338ec5f546557b359 Mon Sep 17 00:00:00 2001 From: wangsiyuan <2392948297@qq.com> Date: Mon, 25 Dec 2023 23:02:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20mysql.sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql.sql | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/mysql.sql b/mysql.sql index 5ebda25..c9cdbdf 100644 --- a/mysql.sql +++ b/mysql.sql @@ -15,20 +15,23 @@ INSERT INTO user (nickname, phone_number, password, identity, status) VALUES CREATE TABLE menu_items ( id INT AUTO_INCREMENT PRIMARY KEY, menu_name VARCHAR(100), + path VARCHAR(255), role ENUM('student', 'teacher'), `order` INT ); -INSERT INTO menu_items (menu_name, role, `order`) VALUES -('课程信息', 'student', 1), -('课程签到', 'student', 2), -('公告信息', 'student', 3), -('签到提醒', 'student', 4); +INSERT INTO menu_items (menu_name, role, path, `order`) VALUES +('课程信息', 'student', '/course-info', 1), +('课程签到', 'student', '/attendance', 2), +('公告信息', 'student', '/announcement', 3), +('签到提醒', 'student', '/attendance-reminder', 4); + + +INSERT INTO menu_items (menu_name, role, path, `order`) VALUES +('课程类别', 'teacher', '/course-category', 1), +('课程信息', 'teacher', '/course-info', 2), +('课程签到', 'teacher', '/attendance', 3), +('签到提醒', 'teacher', '/attendance-reminder', 4); -INSERT INTO menu_items (menu_name, role, `order`) VALUES -('课程类别', 'teacher', 1), -('课程信息', 'teacher', 2), -('课程签到', 'teacher', 3), -('签到提醒', 'teacher', 4);