NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# 课表 [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 '调课记录'; ```