数据结构

12114

表总览

普通表

_cache

  • 缓存表
  1. CREATE TABLE `_cache` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `userId` varchar(255) NOT NULL COMMENT '用户Id',
  4. `content` longtext COMMENT '缓存数据',
  5. `recordStatus` varchar(255) DEFAULT 'active',
  6. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  7. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  8. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  9. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  10. PRIMARY KEY (`id`) USING BTREE
  11. ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '缓存表'

_constant

  • 常量表; 软删除未启用;
  1. CREATE TABLE `_constant` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `constantKey` varchar(255) DEFAULT NULL,
  4. `constantType` varchar(255) DEFAULT NULL COMMENT '常量类型; object, array',
  5. `desc` varchar(255) DEFAULT NULL COMMENT '描述',
  6. `constantValue` text COMMENT '常量内容; object, array',
  7. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  8. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  9. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  10. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  11. PRIMARY KEY (`id`) USING BTREE
  12. ) ENGINE = InnoDB AUTO_INCREMENT = 23 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表; 软删除未启用;'

_page

  • 页面表; 软删除未启用;
  1. CREATE TABLE `_page` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `pageId` varchar(255) DEFAULT NULL COMMENT 'pageId',
  4. `pageFile` varchar(255) DEFAULT NULL,
  5. `pageName` varchar(255) DEFAULT NULL COMMENT 'page name',
  6. `pageType` varchar(255) DEFAULT NULL COMMENT '页面类型; showInMenu, dynamicInMenu',
  7. `sort` varchar(255) DEFAULT NULL,
  8. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  9. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  10. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  11. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  12. PRIMARY KEY (`id`) USING BTREE
  13. ) ENGINE = InnoDB AUTO_INCREMENT = 18 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '页面表; 软删除未启用;'

_pull_down_list

  1. CREATE TABLE `_pull_down_list` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `pullDownName` varchar(255) DEFAULT NULL,
  4. `pullDownValue` longtext ,
  5. `sort` varchar(255) DEFAULT NULL,
  6. PRIMARY KEY (`id`) USING BTREE
  7. ) ENGINE = InnoDB AUTO_INCREMENT = 8 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

_record_history

  1. CREATE TABLE `_record_history` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `table` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '表',
  4. `recordId` int(11) DEFAULT NULL COMMENT '数据在table中的主键id; recordContent.id',
  5. `recordContent` text CHARACTER SET utf8mb4 NOT NULL COMMENT '数据JSON',
  6. `packageContent` text CHARACTER SET utf8mb4 NOT NULL COMMENT '当时请求的 package JSON',
  7. `operation` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '操作; jhInsert, jhUpdate, jhDelete jhRestore',
  8. `operationByUserId` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '操作者userId; recordContent.operationByUserId',
  9. `operationByUser` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '操作者用户名; recordContent.operationByUser',
  10. `operationAt` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '操作时间; recordContent.operationAt; E.g: 2021-05-28T10:24:54+08:00 ',
  11. PRIMARY KEY (`id`) USING BTREE
  12. ) ENGINE = InnoDB AUTO_INCREMENT = 79654 DEFAULT CHARSET = utf8mb4

_resource

  • 请求资源表; 软删除未启用; resourceId=${appId}.${pageId}.${actionId}
  1. CREATE TABLE `_resource` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `accessControlTable` varchar(255) DEFAULT NULL COMMENT '数据规则控制表',
  4. `resourceHook` text COMMENT '[ "before": {"service": "xx", "serviceFunction": "xxx"}, "after": [] }',
  5. `pageId` varchar(255) DEFAULT NULL COMMENT 'page id; E.g: index',
  6. `actionId` varchar(255) DEFAULT NULL COMMENT 'action id; E.g: selectXXXByXXX',
  7. `desc` varchar(255) DEFAULT NULL COMMENT '描述',
  8. `resourceType` varchar(255) DEFAULT NULL COMMENT 'resource 类型; E.g: auth service sql',
  9. `appDataSchema` text COMMENT 'appData 参数校验',
  10. `resourceData` text COMMENT 'resource 数据; { "service": "auth", "serviceFunction": "passwordLogin" } or { "table": "${tableName}", "action": "select", "whereCondition": ".where(function() {this.whereNot( { recordStatus: \\"active\\" })})" }',
  11. `requestDemo` text COMMENT '请求Demo',
  12. `responseDemo` text COMMENT '响应Demo',
  13. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  14. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  15. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  16. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  17. PRIMARY KEY (`id`) USING BTREE
  18. ) ENGINE = InnoDB AUTO_INCREMENT = 416 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '请求资源表; 软删除未启用; resourceId=`${appId}.${pageId}.${actionId}`'

_resource_request_log

  • 文件表; 软删除未启用;
  1. CREATE TABLE `_resource_request_log` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `resourceId` varchar(255) DEFAULT NULL COMMENT 'resource id;',
  4. `packageId` varchar(255) DEFAULT NULL COMMENT 'resource package id',
  5. `userIp` varchar(255) DEFAULT NULL COMMENT '用户ip;',
  6. `userAgent` varchar(255) DEFAULT NULL COMMENT '设备信息',
  7. `userId` varchar(255) DEFAULT NULL COMMENT '用户ID',
  8. `deviceId` varchar(255) DEFAULT NULL COMMENT '设备id',
  9. `userIpRegion` varchar(255) DEFAULT NULL COMMENT '用户Ip区域',
  10. `executeSql` varchar(255) DEFAULT NULL COMMENT '执行的sql',
  11. `requestBody` mediumtext COMMENT '请求body',
  12. `responseBody` mediumtext COMMENT '响应body',
  13. `responseStatus` varchar(255) DEFAULT NULL COMMENT '执行的结果; success, fail',
  14. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  15. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  16. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  17. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  18. PRIMARY KEY (`id`) USING BTREE,
  19. KEY `resourceId_index` (`resourceId`) USING BTREE,
  20. KEY `packageId_index` (`packageId`) USING BTREE
  21. ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '文件表; 软删除未启用;'

_test_case

  • 测试用例表
  1. CREATE TABLE `_test_case` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `pageId` varchar(255) DEFAULT NULL COMMENT '页面Id',
  4. `testId` varchar(255) DEFAULT NULL COMMENT '测试用例Id; 10000 ++',
  5. `testName` varchar(255) DEFAULT NULL COMMENT '测试用例名',
  6. `uiActionIdList` varchar(255) DEFAULT NULL COMMENT 'uiAction列表; 一个测试用例对应多个uiActionId',
  7. `testOpeartion` text COMMENT '测试用例步骤;',
  8. `operation` varchar(255) DEFAULT NULL COMMENT '操作; jhInsert, jhUpdate, jhDelete jhRestore',
  9. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId; recordContent.operationByUserId',
  10. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名; recordContent.operationByUser',
  11. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; recordContent.operationAt; E.g: 2021-05-28T10:24:54+08:00 ',
  12. PRIMARY KEY (`id`) USING BTREE
  13. ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '测试用例表'

_ui

  • ui 施工方案
  1. CREATE TABLE `_ui` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `pageId` varchar(255) DEFAULT NULL COMMENT 'page id; E.g: index',
  4. `uiActionType` varchar(255) DEFAULT NULL COMMENT 'ui 动作类型,如:fetchData, postData, changeUi',
  5. `uiActionId` varchar(255) DEFAULT NULL COMMENT 'action id; E.g: selectXXXByXXX',
  6. `desc` varchar(255) DEFAULT NULL COMMENT '描述',
  7. `uiActionConfig` text COMMENT 'ui 动作数据',
  8. `appDataSchema` text COMMENT 'ui 校验数据',
  9. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  10. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  11. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  12. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  13. PRIMARY KEY (`id`) USING BTREE
  14. ) ENGINE = InnoDB AUTO_INCREMENT = 107 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = 'ui 施工方案'

_user_session

  • 用户session表; deviceId 维度;软删除未启用;
  1. CREATE TABLE `_user_session` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `userId` varchar(255) DEFAULT NULL COMMENT '用户id',
  4. `userIp` varchar(255) DEFAULT NULL COMMENT '用户ip',
  5. `userIpRegion` varchar(255) DEFAULT NULL COMMENT '用户Ip区域',
  6. `userAgent` text COMMENT '请求的 agent',
  7. `deviceId` varchar(255) DEFAULT NULL COMMENT '设备id',
  8. `deviceType` varchar(255) DEFAULT 'web' COMMENT '设备类型; flutter, web, bot_databot, bot_chatbot, bot_xiaochengxu',
  9. `socketStatus` varchar(255) DEFAULT 'offline' COMMENT 'socket状态',
  10. `authToken` varchar(255) DEFAULT NULL COMMENT 'auth token',
  11. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  12. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  13. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  14. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  15. PRIMARY KEY (`id`) USING BTREE,
  16. KEY `userId_index` (`userId`) USING BTREE,
  17. KEY `userId_deviceId_index` (`userId`, `deviceId`) USING BTREE,
  18. KEY `authToken_index` (`authToken`) USING BTREE
  19. ) ENGINE = InnoDB AUTO_INCREMENT = 38 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户session表; deviceId 维度;软删除未启用;'

arrange_task

  1. CREATE TABLE `arrange_task` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `year` varchar(255) NOT NULL COMMENT '年',
  4. `semester` varchar(255) NOT NULL COMMENT '学期',
  5. `name` varchar(255) NOT NULL COMMENT '配置name',
  6. `segment` varchar(255) DEFAULT NULL COMMENT '学部',
  7. `level` varchar(255) DEFAULT NULL COMMENT '年级',
  8. `enableWeekDay` varchar(255) DEFAULT NULL COMMENT '上课时间',
  9. `morningLessonCount` int(11) DEFAULT NULL COMMENT '早读数量',
  10. `amLessonCount` int(11) DEFAULT NULL COMMENT '上午上课数量',
  11. `pmLessonCount` int(11) DEFAULT NULL COMMENT '下午上课数量',
  12. `eveningLessonCount` int(11) DEFAULT NULL COMMENT '晚上上课数量',
  13. `normalOrDouble` varchar(255) DEFAULT NULL COMMENT '排课模式',
  14. `disableSlots` text COMMENT '固定无课时间',
  15. `fixedMorningSection` text COMMENT '早自习设定',
  16. `fixedSection` text COMMENT '固定学科',
  17. `teacherGroup` text COMMENT '教研组',
  18. `sectionMap` varchar(255) DEFAULT NULL COMMENT '节次别名',
  19. `arrangeReport` text COMMENT '排课报告',
  20. `operation` varchar(255) DEFAULT NULL,
  21. `operationByUserId` varchar(255) DEFAULT NULL,
  22. `operationByUser` varchar(255) DEFAULT NULL,
  23. `operationAt` varchar(255) DEFAULT NULL,
  24. PRIMARY KEY (`id`) USING BTREE,
  25. KEY `year` (`year`) USING BTREE,
  26. KEY `semester` (`semester`) USING BTREE
  27. ) ENGINE = InnoDB AUTO_INCREMENT = 34 DEFAULT CHARSET = utf8

arrange_task_history

  1. CREATE TABLE `arrange_task_history` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `year` varchar(255) NOT NULL COMMENT '年',
  4. `semester` varchar(255) NOT NULL COMMENT '学期',
  5. `name` varchar(255) NOT NULL COMMENT '配置name',
  6. `level` varchar(255) NOT NULL COMMENT '年级',
  7. `enableWeekDay` varchar(255) NOT NULL COMMENT '上课时间',
  8. `morningLessonCount` int(11) NOT NULL COMMENT '早读数量',
  9. `amLessonCount` int(11) NOT NULL COMMENT '上午上课数量',
  10. `pmLessonCount` int(11) NOT NULL COMMENT '下午上课数量',
  11. `eveningLessonCount` int(11) NOT NULL COMMENT '晚上上课数量',
  12. `normalOrDouble` varchar(255) DEFAULT NULL COMMENT '排课模式',
  13. `disableSlots` text COMMENT '固定无课时间',
  14. `operation` varchar(255) DEFAULT NULL,
  15. `operationByUserId` varchar(255) DEFAULT NULL,
  16. `operationByUser` varchar(255) DEFAULT NULL,
  17. `operationAt` varchar(255) DEFAULT NULL,
  18. PRIMARY KEY (`id`) USING BTREE,
  19. KEY `year` (`year`) USING BTREE,
  20. KEY `semester` (`semester`) USING BTREE
  21. ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

exclusion_rule

  1. CREATE TABLE `exclusion_rule` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `taskId` int(11) NOT NULL COMMENT '排课任务id',
  4. `year` varchar(255) DEFAULT NULL COMMENT '年',
  5. `semester` varchar(255) DEFAULT NULL COMMENT '学期',
  6. `type` varchar(255) DEFAULT NULL COMMENT '规则类型',
  7. `target` varchar(255) DEFAULT NULL COMMENT '对象',
  8. `rule` text COMMENT '规则',
  9. `remark` varchar(255) DEFAULT NULL COMMENT '描述',
  10. `operation` varchar(255) DEFAULT NULL,
  11. `operationByUserId` varchar(255) DEFAULT NULL,
  12. `operationByUser` varchar(255) DEFAULT NULL,
  13. `operationAt` varchar(255) DEFAULT NULL,
  14. PRIMARY KEY (`id`) USING BTREE,
  15. KEY `taskId` (`taskId`) USING BTREE,
  16. KEY `year` (`year`) USING BTREE,
  17. KEY `semester` (`semester`) USING BTREE
  18. ) ENGINE = InnoDB AUTO_INCREMENT = 1617 DEFAULT CHARSET = utf8

teaching_plan

  1. CREATE TABLE `teaching_plan` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `taskId` int(11) NOT NULL COMMENT '排课任务id',
  4. `year` varchar(255) DEFAULT NULL COMMENT '年',
  5. `semester` varchar(255) DEFAULT NULL COMMENT '学期',
  6. `daytimeLessonCount` int(11) NOT NULL DEFAULT '0' COMMENT '一周上几次',
  7. `morningLessonCount` int(11) DEFAULT '0' COMMENT '早自习',
  8. `eveningLessonCount` int(11) DEFAULT '0' COMMENT '晚自习',
  9. `daytimeConsecutive` int(11) DEFAULT '0' COMMENT '白天连续',
  10. `eveningConsecutive` int(11) DEFAULT '0' COMMENT '晚自习连课',
  11. `classId` varchar(255) NOT NULL COMMENT '班级id',
  12. `subject` varchar(255) NOT NULL COMMENT '科目',
  13. `teacherId` varchar(255) DEFAULT NULL COMMENT '老师id',
  14. `teacherName` varchar(255) DEFAULT NULL COMMENT '老师name',
  15. `operation` varchar(255) DEFAULT NULL,
  16. `operationByUserId` varchar(255) DEFAULT NULL,
  17. `operationByUser` varchar(255) DEFAULT NULL,
  18. `operationAt` varchar(255) DEFAULT NULL,
  19. PRIMARY KEY (`id`) USING BTREE,
  20. KEY `taskId` (`taskId`) USING BTREE,
  21. KEY `year` (`year`) USING BTREE,
  22. KEY `semester` (`semester`) USING BTREE
  23. ) ENGINE = InnoDB AUTO_INCREMENT = 2918 DEFAULT CHARSET = utf8

teaching_plan_history

  1. CREATE TABLE `teaching_plan_history` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `taskId` int(11) NOT NULL COMMENT '排课任务id',
  4. `year` varchar(255) DEFAULT NULL COMMENT '年',
  5. `semester` varchar(255) DEFAULT NULL COMMENT '学期',
  6. `daytimeLessonCount` int(11) NOT NULL COMMENT '一周上几次',
  7. `morningLessonCount` int(11) DEFAULT NULL COMMENT '早自习',
  8. `eveningLessonCount` int(11) DEFAULT NULL COMMENT '晚自习',
  9. `daytimeConsecutive` int(11) DEFAULT NULL COMMENT '白天连续',
  10. `eveningConsecutive` int(11) DEFAULT NULL COMMENT '晚自习连课',
  11. `classId` varchar(255) NOT NULL COMMENT '班级id',
  12. `subject` varchar(255) NOT NULL COMMENT '科目',
  13. `teacherId` varchar(255) NOT NULL COMMENT '老师id',
  14. `teacherName` varchar(255) DEFAULT NULL COMMENT '老师name',
  15. `operation` varchar(255) DEFAULT NULL,
  16. `operationByUserId` varchar(255) DEFAULT NULL,
  17. `operationByUser` varchar(255) DEFAULT NULL,
  18. `operationAt` varchar(255) DEFAULT NULL,
  19. PRIMARY KEY (`id`) USING BTREE,
  20. KEY `taskId` (`taskId`) USING BTREE,
  21. KEY `year` (`year`) USING BTREE,
  22. KEY `semester` (`semester`) USING BTREE
  23. ) ENGINE = InnoDB AUTO_INCREMENT = 206 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

timetable

  1. CREATE TABLE `timetable` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `taskId` int(11) NOT NULL COMMENT '排课任务id',
  4. `year` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '年',
  5. `semester` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '学期',
  6. `weekday` varchar(255) CHARACTER SET utf8 NOT NULL COMMENT '星期几',
  7. `section` varchar(255) CHARACTER SET utf8 NOT NULL COMMENT '节次排序',
  8. `sectionName` varchar(255) CHARACTER SET utf8 NOT NULL COMMENT '节次名称',
  9. `classId` varchar(255) CHARACTER SET utf8 NOT NULL COMMENT '班级id',
  10. `subject` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '单周科目',
  11. `teacherId` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '单周老师id',
  12. `teacherName` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '单周老师name',
  13. `sectionType` varchar(255) CHARACTER SET utf8 DEFAULT 'auto' COMMENT '节次类型',
  14. `mergeTimetableIds` text CHARACTER SET utf8 COMMENT '合班上课课表ids',
  15. `operation` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  16. `operationByUserId` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  17. `operationByUser` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  18. `operationAt` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  19. PRIMARY KEY (`id`) USING BTREE,
  20. UNIQUE KEY `uniq` (`taskId`, `weekday`, `sectionName`, `classId`) USING BTREE,
  21. KEY `year` (`year`) USING BTREE,
  22. KEY `task` (`taskId`) USING BTREE,
  23. KEY `semester` (`semester`) USING BTREE
  24. ) ENGINE = InnoDB AUTO_INCREMENT = 89115 DEFAULT CHARSET = utf8mb4

timetable_history

  1. CREATE TABLE `timetable_history` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `taskId` int(11) NOT NULL COMMENT '排课任务id',
  4. `year` varchar(255) DEFAULT NULL COMMENT '年',
  5. `semester` varchar(255) DEFAULT NULL COMMENT '学期',
  6. `weekday` varchar(255) NOT NULL COMMENT '星期几',
  7. `section` varchar(255) NOT NULL COMMENT '节次排序',
  8. `sectionName` varchar(255) NOT NULL COMMENT '节次名称',
  9. `sectionType` varchar(255) NOT NULL DEFAULT 'auto' COMMENT '节次类型',
  10. `classId` varchar(255) NOT NULL COMMENT '班级id',
  11. `subject` varchar(255) DEFAULT NULL COMMENT '单周科目',
  12. `teacherId` varchar(255) DEFAULT NULL COMMENT '单周老师id',
  13. `teacherName` varchar(255) DEFAULT NULL COMMENT '单周老师name',
  14. `mergeTimetableIds` text COMMENT '合班上课课表ids',
  15. `operation` varchar(255) DEFAULT NULL,
  16. `operationByUserId` varchar(255) DEFAULT NULL,
  17. `operationByUser` varchar(255) DEFAULT NULL,
  18. `operationAt` varchar(255) DEFAULT NULL,
  19. PRIMARY KEY (`id`) USING BTREE,
  20. KEY `year` (`year`) USING BTREE,
  21. KEY `task` (`taskId`) USING BTREE,
  22. KEY `semester` (`semester`) USING BTREE
  23. ) ENGINE = InnoDB DEFAULT CHARSET = utf8

视图

_directory_user_session

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_directory_user_session` AS
  2. select
  3. `lms_data_repository`.`enterprise_directory_user_session`.`id` AS `id`,
  4. `lms_data_repository`.`enterprise_directory_user_session`.`userId` AS `userId`,
  5. `lms_data_repository`.`enterprise_directory_user_session`.`userIp` AS `userIp`,
  6. `lms_data_repository`.`enterprise_directory_user_session`.`userIpRegion` AS `userIpRegion`,
  7. `lms_data_repository`.`enterprise_directory_user_session`.`userAgent` AS `userAgent`,
  8. `lms_data_repository`.`enterprise_directory_user_session`.`deviceId` AS `deviceId`,
  9. `lms_data_repository`.`enterprise_directory_user_session`.`deviceType` AS `deviceType`,
  10. `lms_data_repository`.`enterprise_directory_user_session`.`socketStatus` AS `socketStatus`,
  11. `lms_data_repository`.`enterprise_directory_user_session`.`authToken` AS `authToken`,
  12. `lms_data_repository`.`enterprise_directory_user_session`.`operation` AS `operation`,
  13. `lms_data_repository`.`enterprise_directory_user_session`.`operationByUserId` AS `operationByUserId`,
  14. `lms_data_repository`.`enterprise_directory_user_session`.`operationByUser` AS `operationByUser`,
  15. `lms_data_repository`.`enterprise_directory_user_session`.`operationAt` AS `operationAt`
  16. from
  17. `lms_data_repository`.`enterprise_directory_user_session`

_group

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_group` AS
  2. select
  3. `lms_data_repository`.`enterprise_group`.`id` AS `id`,
  4. `lms_data_repository`.`enterprise_group`.`groupId` AS `groupId`,
  5. `lms_data_repository`.`enterprise_group`.`groupLastId` AS `groupLastId`,
  6. `lms_data_repository`.`enterprise_group`.`groupPath` AS `groupPath`,
  7. `lms_data_repository`.`enterprise_group`.`groupName` AS `groupName`,
  8. `lms_data_repository`.`enterprise_group`.`groupDeptName` AS `groupDeptName`,
  9. `lms_data_repository`.`enterprise_group`.`groupAllName` AS `groupAllName`,
  10. `lms_data_repository`.`enterprise_group`.`principalId` AS `principalId`,
  11. `lms_data_repository`.`enterprise_group`.`headId` AS `headId`,
  12. `lms_data_repository`.`enterprise_group`.`leadId` AS `leadId`,
  13. `lms_data_repository`.`enterprise_group`.`groupDesc` AS `groupDesc`,
  14. `lms_data_repository`.`enterprise_group`.`operation` AS `operation`,
  15. `lms_data_repository`.`enterprise_group`.`operationByUserId` AS `operationByUserId`,
  16. `lms_data_repository`.`enterprise_group`.`operationByUser` AS `operationByUser`,
  17. `lms_data_repository`.`enterprise_group`.`operationAt` AS `operationAt`
  18. from
  19. `lms_data_repository`.`enterprise_group`

_role

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_role` AS
  2. select
  3. `lms_data_repository`.`enterprise_role`.`id` AS `id`,
  4. `lms_data_repository`.`enterprise_role`.`roleId` AS `roleId`,
  5. `lms_data_repository`.`enterprise_role`.`roleName` AS `roleName`,
  6. `lms_data_repository`.`enterprise_role`.`roleType` AS `roleType`,
  7. `lms_data_repository`.`enterprise_role`.`roleDesc` AS `roleDesc`,
  8. `lms_data_repository`.`enterprise_role`.`operation` AS `operation`,
  9. `lms_data_repository`.`enterprise_role`.`operationByUserId` AS `operationByUserId`,
  10. `lms_data_repository`.`enterprise_role`.`operationByUser` AS `operationByUser`,
  11. `lms_data_repository`.`enterprise_role`.`operationAt` AS `operationAt`
  12. from
  13. `lms_data_repository`.`enterprise_role`

_user_group_role

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_user_group_role` AS
  2. select
  3. `lms_data_repository`.`enterprise_user_group_role`.`id` AS `id`,
  4. `lms_data_repository`.`enterprise_user_group_role`.`userId` AS `userId`,
  5. `lms_data_repository`.`enterprise_user_group_role`.`groupId` AS `groupId`,
  6. `lms_data_repository`.`enterprise_user_group_role`.`roleId` AS `roleId`,
  7. `lms_data_repository`.`enterprise_user_group_role`.`roleDeadline` AS `roleDeadline`,
  8. `lms_data_repository`.`enterprise_user_group_role`.`operation` AS `operation`,
  9. `lms_data_repository`.`enterprise_user_group_role`.`operationByUserId` AS `operationByUserId`,
  10. `lms_data_repository`.`enterprise_user_group_role`.`operationByUser` AS `operationByUser`,
  11. `lms_data_repository`.`enterprise_user_group_role`.`operationAt` AS `operationAt`
  12. from
  13. `lms_data_repository`.`enterprise_user_group_role`

_user_group_role_page

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_user_group_role_page` AS
  2. select
  3. `lms_data_repository`.`enterprise_user_group_role_page`.`id` AS `id`,
  4. `lms_data_repository`.`enterprise_user_group_role_page`.`appId` AS `appId`,
  5. `lms_data_repository`.`enterprise_user_group_role_page`.`user` AS `user`,
  6. `lms_data_repository`.`enterprise_user_group_role_page`.`group` AS `group`,
  7. `lms_data_repository`.`enterprise_user_group_role_page`.`role` AS `role`,
  8. `lms_data_repository`.`enterprise_user_group_role_page`.`page` AS `page`,
  9. `lms_data_repository`.`enterprise_user_group_role_page`.`allowOrDeny` AS `allowOrDeny`,
  10. `lms_data_repository`.`enterprise_user_group_role_page`.`desc` AS `desc`,
  11. `lms_data_repository`.`enterprise_user_group_role_page`.`source` AS `source`,
  12. `lms_data_repository`.`enterprise_user_group_role_page`.`operation` AS `operation`,
  13. `lms_data_repository`.`enterprise_user_group_role_page`.`operationByUserId` AS `operationByUserId`,
  14. `lms_data_repository`.`enterprise_user_group_role_page`.`operationByUser` AS `operationByUser`,
  15. `lms_data_repository`.`enterprise_user_group_role_page`.`operationAt` AS `operationAt`
  16. from
  17. `lms_data_repository`.`enterprise_user_group_role_page`
  18. where
  19. (
  20. (
  21. `lms_data_repository`.`enterprise_user_group_role_page`.`appId` = 'lms-teaching-plan'
  22. )
  23. or (
  24. `lms_data_repository`.`enterprise_user_group_role_page`.`appId` = '*'
  25. )
  26. )

_user_group_role_resource

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_user_group_role_resource` AS
  2. select
  3. `lms_data_repository`.`enterprise_user_group_role_resource`.`id` AS `id`,
  4. `lms_data_repository`.`enterprise_user_group_role_resource`.`appId` AS `appId`,
  5. `lms_data_repository`.`enterprise_user_group_role_resource`.`user` AS `user`,
  6. `lms_data_repository`.`enterprise_user_group_role_resource`.`group` AS `group`,
  7. `lms_data_repository`.`enterprise_user_group_role_resource`.`role` AS `role`,
  8. `lms_data_repository`.`enterprise_user_group_role_resource`.`resource` AS `resource`,
  9. `lms_data_repository`.`enterprise_user_group_role_resource`.`allowOrDeny` AS `allowOrDeny`,
  10. `lms_data_repository`.`enterprise_user_group_role_resource`.`desc` AS `desc`,
  11. `lms_data_repository`.`enterprise_user_group_role_resource`.`source` AS `source`,
  12. `lms_data_repository`.`enterprise_user_group_role_resource`.`operation` AS `operation`,
  13. `lms_data_repository`.`enterprise_user_group_role_resource`.`operationByUserId` AS `operationByUserId`,
  14. `lms_data_repository`.`enterprise_user_group_role_resource`.`operationByUser` AS `operationByUser`,
  15. `lms_data_repository`.`enterprise_user_group_role_resource`.`operationAt` AS `operationAt`
  16. from
  17. `lms_data_repository`.`enterprise_user_group_role_resource`
  18. where
  19. (
  20. (
  21. `lms_data_repository`.`enterprise_user_group_role_resource`.`appId` = 'lms-teaching-plan'
  22. )
  23. or (
  24. `lms_data_repository`.`enterprise_user_group_role_resource`.`appId` = '*'
  25. )
  26. )

_view01_user

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view01_user` AS
  2. select
  3. `lms_data_repository`.`enterprise_view01_user`.`id` AS `id`,
  4. `lms_data_repository`.`enterprise_view01_user`.`idSequence` AS `idSequence`,
  5. `lms_data_repository`.`enterprise_view01_user`.`userId` AS `userId`,
  6. `lms_data_repository`.`enterprise_view01_user`.`username` AS `username`,
  7. `lms_data_repository`.`enterprise_view01_user`.`phoneNumber` AS `phoneNumber`,
  8. `lms_data_repository`.`enterprise_view01_user`.`email` AS `email`,
  9. `lms_data_repository`.`enterprise_view01_user`.`userStatus` AS `userStatus`,
  10. `lms_data_repository`.`enterprise_view01_user`.`qiweiId` AS `qiweiId`,
  11. `lms_data_repository`.`enterprise_view01_user`.`userConfig` AS `userConfig`,
  12. `lms_data_repository`.`enterprise_view01_user`.`password` AS `password`,
  13. `lms_data_repository`.`enterprise_view01_user`.`md5Salt` AS `md5Salt`,
  14. `lms_data_repository`.`enterprise_view01_user`.`clearTextPassword` AS `clearTextPassword`,
  15. `lms_data_repository`.`enterprise_view01_user`.`operation` AS `operation`,
  16. `lms_data_repository`.`enterprise_view01_user`.`operationByUserId` AS `operationByUserId`,
  17. `lms_data_repository`.`enterprise_view01_user`.`operationByUser` AS `operationByUser`,
  18. `lms_data_repository`.`enterprise_view01_user`.`operationAt` AS `operationAt`
  19. from
  20. `lms_data_repository`.`enterprise_view01_user`

_view02_user_app

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view02_user_app` AS
  2. select
  3. `lms_data_repository`.`enterprise_view02_user_app`.`id` AS `id`,
  4. `lms_data_repository`.`enterprise_view02_user_app`.`userId` AS `userId`,
  5. `lms_data_repository`.`enterprise_view02_user_app`.`appId` AS `appId`
  6. from
  7. `lms_data_repository`.`enterprise_view02_user_app`
  8. where
  9. (
  10. `lms_data_repository`.`enterprise_view02_user_app`.`appId` = 'lms-teaching-plan'
  11. )

view01_class

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_class` AS
  2. select
  3. `class`.`id` AS `id`,
  4. `class`.`year` AS `year`,
  5. `class`.`academicYear` AS `academicYear`,
  6. `class`.`semester` AS `semester`,
  7. `class`.`segment` AS `segment`,
  8. `class`.`level` AS `level`,
  9. `class`.`number` AS `number`,
  10. `class`.`classId` AS `classId`,
  11. `class`.`className` AS `className`,
  12. `class`.`classNum` AS `classNum`,
  13. `class`.`formTeacherId` AS `formTeacherId`,
  14. `class`.`formTeacherName` AS `formTeacherName`,
  15. `class`.`formTeacherGender` AS `formTeacherGender`,
  16. `class`.`formTeacherContact` AS `formTeacherContact`,
  17. `class`.`learningTrack` AS `learningTrack`,
  18. `class`.`classType` AS `classType`,
  19. `class`.`classTagList` AS `classTagList`,
  20. `class`.`classCreatedBy` AS `classCreatedBy`,
  21. `class`.`remarks` AS `remarks`,
  22. `class`.`classStatus` AS `classStatus`,
  23. `class`.`operation` AS `operation`,
  24. `class`.`operationByUserId` AS `operationByUserId`,
  25. `class`.`operationByUser` AS `operationByUser`,
  26. `class`.`operationAt` AS `operationAt`
  27. from
  28. `lms_data_repository`.`lms_student_admin__class` `class`

view01_employeeld

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_employeeld` AS
  2. select
  3. `lms_data_repository`.`lms_hr__employee`.`id` AS `id`,
  4. `lms_data_repository`.`lms_hr__employee`.`employeeId` AS `employeeId`,
  5. `lms_data_repository`.`lms_hr__employee`.`idSequence` AS `idSequence`,
  6. `lms_data_repository`.`lms_hr__employee`.`employeeName` AS `employeeName`,
  7. `lms_data_repository`.`lms_hr__employee`.`sex` AS `sex`,
  8. `lms_data_repository`.`lms_hr__employee`.`age` AS `age`,
  9. `lms_data_repository`.`lms_hr__employee`.`contactNumber` AS `contactNumber`,
  10. `lms_data_repository`.`lms_hr__employee`.`emergencyContactNumber` AS `emergencyContactNumber`,
  11. `lms_data_repository`.`lms_hr__employee`.`icNumber` AS `icNumber`,
  12. `lms_data_repository`.`lms_hr__employee`.`dateOfBirth` AS `dateOfBirth`,
  13. `lms_data_repository`.`lms_hr__employee`.`institution` AS `institution`,
  14. `lms_data_repository`.`lms_hr__employee`.`major` AS `major`
  15. from
  16. `lms_data_repository`.`lms_hr__employee`

view02_timetable

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view02_timetable` AS
  2. select
  3. `lms_teaching_plan`.`timetable`.`id` AS `timetableId`,
  4. `class`.`year` AS `year`,
  5. `class`.`academicYear` AS `academicYear`,
  6. `class`.`semester` AS `semester`,
  7. `class`.`level` AS `level`,
  8. `class`.`number` AS `number`,
  9. `lms_teaching_plan`.`timetable`.`taskId` AS `taskId`,
  10. `lms_teaching_plan`.`timetable`.`weekday` AS `weekday`,
  11. `lms_teaching_plan`.`timetable`.`section` AS `section`,
  12. `lms_teaching_plan`.`timetable`.`sectionName` AS `sectionName`,
  13. `lms_teaching_plan`.`timetable`.`classId` AS `classId`,
  14. `lms_teaching_plan`.`timetable`.`subject` AS `subject`,
  15. `lms_teaching_plan`.`timetable`.`teacherId` AS `teacherId`,
  16. `lms_teaching_plan`.`timetable`.`teacherName` AS `teacherName`,
  17. `lms_teaching_plan`.`timetable`.`mergeTimetableIds` AS `mergeTimetableIds`,
  18. `lms_teaching_plan`.`timetable`.`operationAt` AS `operationAt`,
  19. `lms_teaching_plan`.`timetable`.`sectionType` AS `sectionType`
  20. from
  21. (
  22. `lms_teaching_plan`.`timetable`
  23. left join `lms_teaching_plan`.`view01_class` `class` on (
  24. (
  25. convert(
  26. `lms_teaching_plan`.`timetable`.`classId` using utf8mb4
  27. ) = `class`.`classId`
  28. )
  29. )
  30. )