🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 课表 [TOC] ## 数据表 ``` drop table if exists tbTimetable; /*==============================================================*/ /* Table: tbTimetable */ /*==============================================================*/ create table tbTimetable ( id int not null auto_increment, fdTermID int comment '学期ID', fdGradeID tinyint comment '年级ID', fdClassID int comment '班级ID', fdWeekID tinyint comment '星期 0:周日 1-6:周一到周六', fdClassIndex tinyint comment '上课节次', fdSubjectID tinyint comment '科目ID', primary key (id) ); alter table tbTimetable comment '课程表设计'; drop table if exists tbTimetableAdust; /*==============================================================*/ /* Table: tbTimetableAdust */ /*==============================================================*/ create table tbTimetableAdust ( id int not null auto_increment, fdTermID int comment '学期ID', fdGradeID tinyint comment '年级ID', fdClassID int comment '班级ID', fdDate date comment '当前课日期', fdClassIndex tinyint comment '当前课节次', fdSubjectID tinyint comment '当前课科目ID', fdSourceDate date comment '原课被调往日期', fdSourceClassIndex tinyint comment '原课被调往节次', fdSourceSubjectID tinyint comment '原课被调往科目ID', fdUserID int comment '操作者用户ID', fdCreate datetime, primary key (id) ); alter table tbTimetableAdust comment '调课记录'; ```