CREATE TABLE user (
    id INT AUTO_INCREMENT PRIMARY KEY,
    nickname VARCHAR(50) NOT NULL,
    phone_number VARCHAR(15) NOT NULL UNIQUE,
    password VARCHAR(255) NOT NULL,
    identity ENUM('teacher', 'student') NOT NULL,
    status BOOLEAN NOT NULL
);

INSERT INTO user (nickname, phone_number, password, identity, status) VALUES
('Alice', '1', '$2b$12$okY88GrzlUHb/Ox1ENwtqeBUnE0bgMOCPy.UKmFaTnu3El7EYX8Em', 'student', TRUE);



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, 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);


