更新 mysql.sql
parent
c73997452b
commit
892196a827
23
mysql.sql
23
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);
|
||||
|
||||
|
|
|
|||
Reference in New Issue