数据结构
12114表总览
普通表
__bkp_data__notice_task_20230515
- 通知任务表(学生维度)
CREATE TABLE `__bkp_data__notice_task_20230515` (`id` int(11) NOT NULL AUTO_INCREMENT,`idSequence` int(11) DEFAULT NULL COMMENT '自增id;',`taskId` varchar(255) DEFAULT NULL COMMENT '任务Id',`studentId` varchar(255) DEFAULT NULL COMMENT '学生ID',`studentName` varchar(255) DEFAULT NULL COMMENT '学生名',`noticeTemplate` varchar(255) DEFAULT '普通文字消息模版' COMMENT '模板文件名;',`noticeName` varchar(255) DEFAULT NULL COMMENT '消息名称',`noticeContent` text COMMENT '消息内容JSON; eg: {"content": "测试推送"}',`noticeDetailContent` text COMMENT '消息详情页内容JSON',`isGeneratePush` varchar(255) DEFAULT '否' COMMENT '是否生成推送数据;',`createAt` varchar(255) DEFAULT NULL COMMENT '创建任务时间;',`schedulePushAt` varchar(255) DEFAULT NULL COMMENT '计划推送时间; E.g: 2021-05-28T10:24:54+08:00',`examId` varchar(255) DEFAULT NULL COMMENT '成绩对应的考试ID',`appId` varchar(255) DEFAULT NULL COMMENT '消息来源业务ID',`noticeBatchId` varchar(255) DEFAULT NULL COMMENT '成绩通知生成批次编号',`noticeData` varchar(255) DEFAULT NULL COMMENT '消息业务数据',`noticeStatus` varchar(255) DEFAULT NULL COMMENT '消息状态:new-新建, draft-草稿, publish-发布',`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE,UNIQUE KEY `task_unique` (`taskId`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 2681 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '通知任务表(学生维度)'
_cache
- 缓存表
CREATE TABLE `_cache` (`id` int(11) NOT NULL AUTO_INCREMENT,`userId` varchar(255) NOT NULL COMMENT '用户Id',`content` longtext COMMENT '缓存数据',`recordStatus` varchar(255) DEFAULT 'active',`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '缓存表'
_constant
- 常量表; 软删除未启用;
CREATE TABLE `_constant` (`id` int(11) NOT NULL AUTO_INCREMENT,`constantKey` varchar(255) DEFAULT NULL,`constantType` varchar(255) DEFAULT NULL COMMENT '常量类型; object, array',`desc` varchar(255) DEFAULT NULL COMMENT '描述',`constantValue` text COMMENT '常量内容; object, array',`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 30 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表; 软删除未启用;'
_page
- 页面表; 软删除未启用;
CREATE TABLE `_page` (`id` int(11) NOT NULL AUTO_INCREMENT,`pageId` varchar(255) DEFAULT NULL COMMENT 'pageId',`pageFile` varchar(255) DEFAULT NULL COMMENT 'page文件指定; 默认使用pageId.html',`pageName` varchar(255) DEFAULT NULL COMMENT 'page name',`pageType` varchar(255) DEFAULT NULL COMMENT '页面类型; showInMenu, dynamicInMenu',`sort` varchar(255) DEFAULT NULL,`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 41 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '页面表; 软删除未启用;'
_record_history
- 数据历史表
CREATE TABLE `_record_history` (`id` int(11) NOT NULL AUTO_INCREMENT,`table` varchar(255) DEFAULT NULL COMMENT '表',`recordId` int(11) DEFAULT NULL COMMENT '数据在table中的主键id; recordContent.id',`recordContent` text NOT NULL COMMENT '数据',`packageContent` text NOT NULL COMMENT '当时请求的 package JSON',`operation` varchar(255) DEFAULT NULL COMMENT '操作; jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId; recordContent.operationByUserId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名; recordContent.operationByUser',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; recordContent.operationAt; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE,KEY `index_record_id` (`recordId`) USING BTREE,KEY `index_table_action` (`table`, `operation`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '数据历史表'
_resource
- 请求资源表; 软删除未启用; resourceId=
${appId}.${pageId}.${actionId}
CREATE TABLE `_resource` (`id` int(11) NOT NULL AUTO_INCREMENT,`accessControlTable` varchar(255) DEFAULT NULL COMMENT '数据规则控制表',`resourceHook` text COMMENT '[ "before": {"service": "xx", "serviceFunction": "xxx"}, "after": [] }',`pageId` varchar(255) DEFAULT NULL COMMENT 'page id; E.g: index',`actionId` varchar(255) DEFAULT NULL COMMENT 'action id; E.g: selectXXXByXXX',`desc` varchar(255) DEFAULT NULL COMMENT '描述',`resourceType` varchar(255) DEFAULT NULL COMMENT 'resource 类型; E.g: auth service sql',`appDataSchema` text COMMENT 'appData 参数校验',`resourceData` text COMMENT 'resource 数据; { "service": "auth", "serviceFunction": "passwordLogin" } or { "table": "${tableName}", "action": "select", "whereCondition": ".where(function() {this.whereNot( { recordStatus: \\"active\\" })})" }',`requestDemo` text COMMENT '请求Demo',`responseDemo` text COMMENT '响应Demo',`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 397 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '请求资源表; 软删除未启用; resourceId=`${appId}.${pageId}.${actionId}`'
_test_case
- 测试用例表
CREATE TABLE `_test_case` (`id` int(11) NOT NULL AUTO_INCREMENT,`pageId` varchar(255) DEFAULT NULL COMMENT '页面Id',`testId` varchar(255) DEFAULT NULL COMMENT '测试用例Id; 10000 ++',`testName` varchar(255) DEFAULT NULL COMMENT '测试用例名',`uiActionIdList` varchar(255) DEFAULT NULL COMMENT 'uiAction列表; 一个测试用例对应多个uiActionId',`testOpeartion` text COMMENT '测试用例步骤;',`expectedResult` text COMMENT '期望结果',`operation` varchar(255) DEFAULT NULL COMMENT '操作; jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId; recordContent.operationByUserId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名; recordContent.operationByUser',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; recordContent.operationAt; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '测试用例表'
_ui
- ui 施工方案
CREATE TABLE `_ui` (`id` int(11) NOT NULL AUTO_INCREMENT,`pageId` varchar(255) DEFAULT NULL COMMENT 'page id; E.g: index',`uiActionType` varchar(255) DEFAULT NULL COMMENT 'ui 动作类型,如:fetchData, postData, changeUi',`uiActionId` varchar(255) DEFAULT NULL COMMENT 'action id; E.g: selectXXXByXXX',`desc` varchar(255) DEFAULT NULL COMMENT '描述',`uiActionConfig` text COMMENT 'ui 动作数据',`appDataSchema` text COMMENT 'ui 校验数据',`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = 'ui 施工方案'
_user
- 用户表
CREATE TABLE `_user` (`id` int(11) NOT NULL AUTO_INCREMENT,`idSequence` varchar(255) DEFAULT NULL COMMENT '自增id; 用于生成userId',`userId` varchar(255) DEFAULT NULL COMMENT '主键id',`username` varchar(255) DEFAULT NULL COMMENT '用户名(登陆)',`clearTextPassword` varchar(255) DEFAULT NULL COMMENT '明文密码',`password` varchar(255) DEFAULT NULL COMMENT '密码',`md5Salt` varchar(255) DEFAULT NULL COMMENT 'md5Salt',`userStatus` varchar(255) DEFAULT 'active' COMMENT '用户账号状态:活跃或关闭',`userType` varchar(255) DEFAULT NULL COMMENT '用户类型; staff, student.',`config` mediumtext COMMENT '配置信息',`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE,UNIQUE KEY `username_index` (`username`) USING BTREE,UNIQUE KEY `userId_index` (`userId`) USING BTREE) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户表'
_user_session
- 用户session表; deviceId 维度;软删除未启用;
CREATE TABLE `_user_session` (`id` int(11) NOT NULL AUTO_INCREMENT,`userId` varchar(255) DEFAULT NULL COMMENT '用户id',`userIp` varchar(255) DEFAULT NULL COMMENT '用户ip',`userIpRegion` varchar(255) DEFAULT NULL COMMENT '用户Ip区域',`userAgent` text COMMENT '请求的 agent',`deviceId` varchar(255) DEFAULT NULL COMMENT '设备id',`deviceType` varchar(255) DEFAULT 'web' COMMENT '设备类型; flutter, web, bot_databot, bot_chatbot, bot_xiaochengxu',`socketStatus` varchar(255) DEFAULT 'offline' COMMENT 'socket状态',`authToken` varchar(255) DEFAULT NULL COMMENT 'auth token',`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE,KEY `userId_index` (`userId`) USING BTREE,KEY `userId_deviceId_index` (`userId`, `deviceId`) USING BTREE,KEY `authToken_index` (`authToken`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户session表; deviceId 维度;软删除未启用;'
exam
CREATE TABLE `exam` (`id` int(11) NOT NULL AUTO_INCREMENT,`examId` varchar(255) DEFAULT NULL COMMENT '考试ID',`examName` varchar(255) DEFAULT NULL COMMENT '考试名',`semester` varchar(255) DEFAULT NULL COMMENT '学期',`year` varchar(255) DEFAULT NULL COMMENT '自然年',`academicYear` varchar(255) DEFAULT NULL COMMENT '年份',`segment` varchar(255) DEFAULT NULL COMMENT '学部',`level` varchar(255) DEFAULT NULL COMMENT '年级',`examType` varchar(255) DEFAULT NULL COMMENT '考试类型',`learningTrack` varchar(255) DEFAULT NULL COMMENT '学科方向',`subjectCount` int(11) DEFAULT NULL COMMENT '科目总数',`subjectList` varchar(255) DEFAULT NULL COMMENT '科目列表',`subjectFullScore` text COMMENT '科目满分',`startDate` varchar(255) DEFAULT NULL COMMENT '考试开始日期',`endDate` varchar(255) DEFAULT NULL COMMENT '考试结束日期',`startMonth` varchar(255) DEFAULT NULL COMMENT '考试开始月',`subjectFullScoreList` varchar(255) DEFAULT NULL COMMENT '科目满分列表,和科目列表是对应关系',`description` text COMMENT '简介',`isSendNotice` varchar(255) DEFAULT NULL COMMENT '是否通知家长',`examStatus` varchar(255) DEFAULT NULL COMMENT '考试状态',`examResultStatus` varchar(255) DEFAULT NULL COMMENT '考试成绩状态',`noticeTemplate` varchar(255) DEFAULT NULL COMMENT '成绩通知模板',`noticeContent` text COMMENT '成绩通知卡片配置',`noticeDetailContent` text COMMENT '成绩通知详情配置',`noticeBatchId` varchar(255) DEFAULT NULL COMMENT '成绩通知生成批次编号',`noticeCount` int(11) DEFAULT '0' COMMENT '生成的成绩通知总数',`restulUploadBatchId` varchar(255) DEFAULT NULL COMMENT '考试成绩上传批次编号',`operation` varchar(255) DEFAULT NULL,`operationAt` varchar(255) DEFAULT NULL,`operationByUserId` varchar(255) DEFAULT NULL,`operationByUser` varchar(255) DEFAULT NULL,PRIMARY KEY (`id`) USING BTREE,UNIQUE KEY `examId` (`examId`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 107 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
notice_batch
CREATE TABLE `notice_batch` (`id` int(11) NOT NULL,`noticeBatchId` varchar(255) DEFAULT NULL COMMENT '消息通知批次编号',`appId` varchar(255) DEFAULT NULL COMMENT '消息来源业务Id',`examId` varchar(255) DEFAULT NULL COMMENT '考试ID',`noticeTemplateId` varchar(255) DEFAULT NULL COMMENT '消息模板ID',`noticeTemplate` varchar(255) DEFAULT NULL COMMENT '消息模板名',`studentCount` int(11) DEFAULT NULL COMMENT '学生人数',`generatedNoticeCount` int(11) DEFAULT NULL COMMENT '生成的消息数',`sentNoticeCount` int(11) DEFAULT NULL COMMENT '实际发送的消息数',`noticeBatchStatus` varchar(255) DEFAULT NULL COMMENT 'new-新建, draft-草稿, publish-已发布',`operation` varchar(255) DEFAULT NULL,`operationAt` varchar(255) DEFAULT NULL,`operationByUserId` varchar(255) DEFAULT NULL,`operationByUser` varchar(255) DEFAULT NULL,PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
notice_task
- 通知任务表(学生维度)
CREATE TABLE `notice_task` (`id` int(11) NOT NULL AUTO_INCREMENT,`idSequence` int(11) DEFAULT NULL COMMENT '自增id;',`taskId` varchar(255) DEFAULT NULL COMMENT '任务Id',`studentId` varchar(255) DEFAULT NULL COMMENT '学生ID',`studentName` varchar(255) DEFAULT NULL COMMENT '学生名',`noticeTemplate` varchar(255) DEFAULT '普通文字消息模版' COMMENT '模板文件名;',`noticeName` varchar(255) DEFAULT NULL COMMENT '消息名称',`noticeContent` text COMMENT '消息内容JSON; eg: {"content": "测试推送"}',`noticeDetailContent` text COMMENT '消息详情页内容JSON',`isGeneratePush` varchar(255) DEFAULT '否' COMMENT '是否生成推送数据;',`createAt` varchar(255) DEFAULT NULL COMMENT '创建任务时间;',`schedulePushAt` varchar(255) DEFAULT NULL COMMENT '计划推送时间; E.g: 2021-05-28T10:24:54+08:00',`isPushByWxTemplate` varchar(255) DEFAULT NULL COMMENT '是否使用微信模板消息推送',`examId` varchar(255) DEFAULT NULL COMMENT '成绩对应的考试ID',`appId` varchar(255) DEFAULT NULL COMMENT '消息来源业务ID',`noticeBatchId` varchar(255) DEFAULT NULL COMMENT '成绩通知生成批次编号',`noticeData` varchar(255) DEFAULT NULL COMMENT '消息业务数据',`noticeStatus` varchar(255) DEFAULT NULL COMMENT '消息状态:new-新建, draft-草稿, publish-发布',`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE,UNIQUE KEY `task_unique` (`taskId`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 45 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '通知任务表(学生维度)'
notice_template
CREATE TABLE `notice_template` (`id` int(11) NOT NULL AUTO_INCREMENT,`noticeTemplateId` varchar(255) DEFAULT NULL,`noticeTemplate` varchar(255) DEFAULT NULL,`noticeContent` text ,`noticeDetailContent` text ,`noticeTemplateStatus` varchar(255) DEFAULT NULL,`operation` varchar(255) DEFAULT 'insert',`operationByUserId` varchar(255) DEFAULT NULL,`operationByUser` varchar(255) DEFAULT NULL,`operationAt` varchar(255) DEFAULT NULL,PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 2 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
student_exam_result_overall
CREATE TABLE `student_exam_result_overall` (`id` int(11) NOT NULL AUTO_INCREMENT,`year` varchar(255) DEFAULT NULL,`examId` varchar(255) DEFAULT NULL COMMENT '考试ID',`examName` varchar(255) DEFAULT NULL COMMENT '考试名称',`studentId` varchar(255) DEFAULT NULL COMMENT '学生Id',`name` varchar(255) DEFAULT NULL COMMENT '学生姓名',`academicYear` varchar(255) DEFAULT NULL COMMENT '学年',`semester` varchar(255) DEFAULT NULL COMMENT '学期',`segment` varchar(255) DEFAULT NULL COMMENT '学部',`level` varchar(255) DEFAULT NULL COMMENT '年级',`classId` varchar(255) DEFAULT NULL COMMENT '班级',`className` varchar(255) DEFAULT NULL COMMENT '班级名称',`classTagList` text COMMENT '班级标签',`totalScore` varchar(255) DEFAULT NULL COMMENT '总分',`overallClassRank` int(11) DEFAULT NULL COMMENT '班级排名',`overallSchoolRank` int(11) DEFAULT NULL COMMENT '学校排名',`overallClassPercentile` varchar(255) DEFAULT NULL,`overallSchoolPercentile` varchar(255) DEFAULT NULL,`attendance` varchar(255) DEFAULT NULL COMMENT '出勤',`remarks` text COMMENT '备注',`resultStatus` varchar(255) DEFAULT NULL COMMENT '分数状态',`resultUploadBatchId` varchar(255) DEFAULT NULL COMMENT '成绩上传批次编号',`resultUploadByUserId` varchar(255) DEFAULT NULL COMMENT '成绩上传人',`resultUploadByUser` varchar(255) DEFAULT NULL COMMENT '成绩上传',`resultUploadAt` varchar(255) DEFAULT NULL,`resultConfirmedByUserId` varchar(255) DEFAULT NULL,`resultConfirmedByUser` varchar(255) DEFAULT NULL,`resultConfirmedAt` varchar(255) DEFAULT NULL,`operation` varchar(255) DEFAULT NULL,`operationAt` varchar(255) DEFAULT NULL,`operationByUserId` varchar(255) DEFAULT NULL,`operationByUser` varchar(255) DEFAULT NULL,PRIMARY KEY (`id`) USING BTREE,UNIQUE KEY `examId_studentId` (`examId`, `studentId`) USING BTREE,KEY `examId` (`examId`) USING BTREE,KEY `studentId` (`studentId`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 19726 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
student_exam_result_subject
CREATE TABLE `student_exam_result_subject` (`id` int(11) NOT NULL AUTO_INCREMENT,`year` varchar(255) DEFAULT NULL COMMENT '自然年',`examId` varchar(255) DEFAULT NULL COMMENT '考试ID',`examName` varchar(255) DEFAULT NULL COMMENT '考试名称',`studentId` varchar(255) DEFAULT NULL COMMENT '学生Id',`name` varchar(255) DEFAULT NULL COMMENT '学生姓名',`academicYear` varchar(255) DEFAULT NULL COMMENT '学年',`semester` varchar(255) DEFAULT NULL COMMENT '学期',`segment` varchar(255) DEFAULT NULL COMMENT '学部',`level` varchar(255) DEFAULT NULL COMMENT '年级',`number` varchar(255) DEFAULT NULL COMMENT '考试编号',`classId` varchar(255) DEFAULT NULL COMMENT '班级',`className` varchar(255) DEFAULT NULL COMMENT '班级名称',`classTagList` varchar(255) DEFAULT NULL COMMENT '班级标签',`subjectId` varchar(255) DEFAULT NULL COMMENT '科目ID',`subjectName` varchar(255) DEFAULT NULL COMMENT '科目',`subjectSortOrder` varchar(255) DEFAULT NULL COMMENT '科目排序',`score` varchar(255) DEFAULT NULL COMMENT '分数',`subjectClassRank` varchar(255) DEFAULT NULL COMMENT '班级排名',`subjectSchoolRank` varchar(255) DEFAULT NULL COMMENT '学校排名',`scoreDetails` text COMMENT '分数详情',`resultStatus` varchar(255) DEFAULT NULL COMMENT '分数状态',`resultUploadBatchId` varchar(255) DEFAULT NULL,`resultUploadByUserId` varchar(255) DEFAULT NULL,`resultUploadByUser` varchar(255) DEFAULT NULL,`resultUploadAt` varchar(255) DEFAULT NULL,`resultConfirmedByUserId` varchar(255) DEFAULT NULL,`resultConfirmedByUser` varchar(255) DEFAULT NULL,`resultConfirmedAt` varchar(255) DEFAULT NULL,`operation` varchar(255) DEFAULT NULL,`operationAt` varchar(255) DEFAULT NULL,`operationByUserId` varchar(255) DEFAULT NULL,`operationByUser` varchar(255) DEFAULT NULL,PRIMARY KEY (`id`) USING BTREE,UNIQUE KEY `examId_studentId_subjectId` (`examId`, `studentId`, `subjectId`) USING BTREE,KEY `examId` (`examId`) USING BTREE,KEY `studentId` (`studentId`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 135309 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
视图
_directory_user_session
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_directory_user_session` ASselect`lms_data_repository`.`enterprise_directory_user_session`.`id` AS `id`,`lms_data_repository`.`enterprise_directory_user_session`.`userId` AS `userId`,`lms_data_repository`.`enterprise_directory_user_session`.`userIp` AS `userIp`,`lms_data_repository`.`enterprise_directory_user_session`.`userIpRegion` AS `userIpRegion`,`lms_data_repository`.`enterprise_directory_user_session`.`userAgent` AS `userAgent`,`lms_data_repository`.`enterprise_directory_user_session`.`deviceId` AS `deviceId`,`lms_data_repository`.`enterprise_directory_user_session`.`deviceType` AS `deviceType`,`lms_data_repository`.`enterprise_directory_user_session`.`socketStatus` AS `socketStatus`,`lms_data_repository`.`enterprise_directory_user_session`.`authToken` AS `authToken`,`lms_data_repository`.`enterprise_directory_user_session`.`operation` AS `operation`,`lms_data_repository`.`enterprise_directory_user_session`.`operationByUserId` AS `operationByUserId`,`lms_data_repository`.`enterprise_directory_user_session`.`operationByUser` AS `operationByUser`,`lms_data_repository`.`enterprise_directory_user_session`.`operationAt` AS `operationAt`from`lms_data_repository`.`enterprise_directory_user_session`
_dr__class
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_dr__class` ASselect`c`.`id` AS `id`,`c`.`year` AS `year`,`c`.`academicYear` AS `academicYear`,`c`.`semester` AS `semester`,`c`.`segment` AS `segment`,`c`.`level` AS `level`,`c`.`number` AS `number`,`c`.`classId` AS `classId`,`c`.`className` AS `className`,`c`.`classNum` AS `classNum`,`c`.`formTeacherId` AS `formTeacherId`,`c`.`formTeacherName` AS `formTeacherName`,`c`.`formTeacherGender` AS `formTeacherGender`,`c`.`formTeacherContact` AS `formTeacherContact`,`c`.`learningTrack` AS `learningTrack`,`c`.`classType` AS `classType`,`c`.`classTagList` AS `classTagList`,`c`.`classCreatedBy` AS `classCreatedBy`,`c`.`remarks` AS `remarks`,`c`.`classStatus` AS `classStatus`,`c`.`operation` AS `operation`,`c`.`operationByUserId` AS `operationByUserId`,`c`.`operationByUser` AS `operationByUser`,`c`.`operationAt` AS `operationAt`from`lms_data_repository`.`lms_student_admin__class` `c`
_dr__notice_task
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_dr__notice_task` ASselect`n`.`id` AS `id`,`n`.`idSequence` AS `idSequence`,`n`.`taskId` AS `taskId`,`n`.`studentId` AS `studentId`,`n`.`studentName` AS `studentName`,`n`.`noticeTemplate` AS `noticeTemplate`,`n`.`noticeName` AS `noticeName`,`n`.`noticeContent` AS `noticeContent`,`n`.`noticeDetailContent` AS `noticeDetailContent`,`n`.`isGeneratePush` AS `isGeneratePush`,`n`.`createAt` AS `createAt`,`n`.`schedulePushAt` AS `schedulePushAt`,`n`.`isPushByWxTemplate` AS `isPushByWxTemplate`,`n`.`appId` AS `appId`,`n`.`noticeBatchId` AS `noticeBatchId`,`n`.`noticeData` AS `noticeData`,`n`.`recipientCount` AS `recipientCount`,`n`.`noticeStatus` AS `noticeStatus`,`n`.`operation` AS `operation`,`n`.`operationByUserId` AS `operationByUserId`,`n`.`operationByUser` AS `operationByUser`,`n`.`operationAt` AS `operationAt`from`lms_data_repository`.`lms_notice__notice_task` `n`
_dr__notice_task_push
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_dr__notice_task_push` ASselect`n`.`id` AS `id`,`n`.`taskId` AS `taskId`,`n`.`taskPushId` AS `taskPushId`,`n`.`wechatOpenId` AS `wechatOpenId`,`n`.`wechatOpenNickName` AS `wechatOpenNickName`,`n`.`studentId` AS `studentId`,`n`.`studentName` AS `studentName`,`n`.`noticeTemplate` AS `noticeTemplate`,`n`.`noticeName` AS `noticeName`,`n`.`noticeContent` AS `noticeContent`,`n`.`noticeDetailContent` AS `noticeDetailContent`,`n`.`pushStatus` AS `pushStatus`,`n`.`pushAt` AS `pushAt`,`n`.`pushFailErrorReason` AS `pushFailErrorReason`,`n`.`pushFailTimes` AS `pushFailTimes`,`n`.`schedulePushAt` AS `schedulePushAt`,`n`.`operation` AS `operation`,`n`.`operationByUserId` AS `operationByUserId`,`n`.`operationByUser` AS `operationByUser`,`n`.`operationAt` AS `operationAt`from`lms_data_repository`.`lms_notice__notice_task_push` `n`
_dr__student_basic
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_dr__student_basic` ASselect`s`.`id` AS `id`,`s`.`enrollmentYear` AS `enrollmentYear`,`s`.`enrollmentSemester` AS `enrollmentSemester`,`s`.`enrollmentDate` AS `enrollmentDate`,`s`.`studentId` AS `studentId`,`s`.`classId` AS `classId`,`s`.`idSequence` AS `idSequence`,`s`.`enrollmentSegment` AS `enrollmentSegment`,`s`.`enrollmentLevel` AS `enrollmentLevel`,`s`.`enrollmentClassId` AS `enrollmentClassId`,`s`.`name` AS `name`,`s`.`gender` AS `gender`,`s`.`studentStatus` AS `studentStatus`,`s`.`icNumber` AS `icNumber`,`s`.`scholarshipLevel` AS `scholarshipLevel`,`s`.`requestType` AS `requestType`,`s`.`afterSchoolCareType` AS `afterSchoolCareType`,`s`.`residentialAddress` AS `residentialAddress`,`s`.`guardian1Name` AS `guardian1Name`,`s`.`guardian1Relationship` AS `guardian1Relationship`,`s`.`guardian1Contact` AS `guardian1Contact`,`s`.`guardian1ResidentialAddress` AS `guardian1ResidentialAddress`,`s`.`guardian2Name` AS `guardian2Name`,`s`.`guardian2Relationship` AS `guardian2Relationship`,`s`.`guardian2Contact` AS `guardian2Contact`,`s`.`guardian2ResidentialAddress` AS `guardian2ResidentialAddress`,`s`.`remarks` AS `remarks`,`s`.`newRemarks` AS `newRemarks`,`s`.`hostelName` AS `hostelName`,`s`.`hostelUnitNumber` AS `hostelUnitNumber`,`s`.`hostelBedId` AS `hostelBedId`,`s`.`dining_canteen_table` AS `dining_canteen_table`,`s`.`completedEnrollmentRecordYesOrNo` AS `completedEnrollmentRecordYesOrNo`,`s`.`completedClassAssignedYesOrNo` AS `completedClassAssignedYesOrNo`,`s`.`completedLogisticsAssignedYesOrNo` AS `completedLogisticsAssignedYesOrNo`,`s`.`completedPaymentYesOrNo` AS `completedPaymentYesOrNo`,`s`.`completedEnrollmentYesOrNo` AS `completedEnrollmentYesOrNo`,`s`.`completedQuitYesOrNo` AS `completedQuitYesOrNo`,`s`.`compeletedUpgradeYesOrNo` AS `compeletedUpgradeYesOrNo`,`s`.`enrolledBy` AS `enrolledBy`,`s`.`classAssignedBy` AS `classAssignedBy`,`s`.`paymentReceivedBy` AS `paymentReceivedBy`,`s`.`checkPaymentStatusBy` AS `checkPaymentStatusBy`,`s`.`hostelAssignedBy` AS `hostelAssignedBy`,`s`.`enrollmentApprovedBy` AS `enrollmentApprovedBy`,`s`.`quitApprovedBy` AS `quitApprovedBy`,`s`.`operation` AS `operation`,`s`.`operationAt` AS `operationAt`,`s`.`operationByUserId` AS `operationByUserId`,`s`.`operationByUser` AS `operationByUser`,`s`.`completedQuitAssignedYesOrNo` AS `completedQuitAssignedYesOrNo`,`s`.`quitHostelAssignedBy` AS `quitHostelAssignedBy`,`s`.`completedQuitPaymentYesOrNo` AS `completedQuitPaymentYesOrNo`,`s`.`middleSchoolExamScore` AS `middleSchoolExamScore`,`s`.`middleSchoolExamSequence` AS `middleSchoolExamSequence`,`s`.`quitPaymentBy` AS `quitPaymentBy`from`lms_data_repository`.`lms_student_admin__student_basic` `s`
_group
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_group` ASselect`lms_data_repository`.`enterprise_group`.`id` AS `id`,`lms_data_repository`.`enterprise_group`.`groupId` AS `groupId`,`lms_data_repository`.`enterprise_group`.`groupLastId` AS `groupLastId`,`lms_data_repository`.`enterprise_group`.`groupPath` AS `groupPath`,`lms_data_repository`.`enterprise_group`.`groupName` AS `groupName`,`lms_data_repository`.`enterprise_group`.`groupDeptName` AS `groupDeptName`,`lms_data_repository`.`enterprise_group`.`groupAllName` AS `groupAllName`,`lms_data_repository`.`enterprise_group`.`principalId` AS `principalId`,`lms_data_repository`.`enterprise_group`.`headId` AS `headId`,`lms_data_repository`.`enterprise_group`.`leadId` AS `leadId`,`lms_data_repository`.`enterprise_group`.`groupDesc` AS `groupDesc`,`lms_data_repository`.`enterprise_group`.`operation` AS `operation`,`lms_data_repository`.`enterprise_group`.`operationByUserId` AS `operationByUserId`,`lms_data_repository`.`enterprise_group`.`operationByUser` AS `operationByUser`,`lms_data_repository`.`enterprise_group`.`operationAt` AS `operationAt`from`lms_data_repository`.`enterprise_group`
_role
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_role` ASselect`lms_data_repository`.`enterprise_role`.`id` AS `id`,`lms_data_repository`.`enterprise_role`.`roleId` AS `roleId`,`lms_data_repository`.`enterprise_role`.`roleName` AS `roleName`,`lms_data_repository`.`enterprise_role`.`roleType` AS `roleType`,`lms_data_repository`.`enterprise_role`.`roleDesc` AS `roleDesc`,`lms_data_repository`.`enterprise_role`.`operation` AS `operation`,`lms_data_repository`.`enterprise_role`.`operationByUserId` AS `operationByUserId`,`lms_data_repository`.`enterprise_role`.`operationByUser` AS `operationByUser`,`lms_data_repository`.`enterprise_role`.`operationAt` AS `operationAt`from`lms_data_repository`.`enterprise_role`
_user_group_role
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_user_group_role` ASselect`lms_data_repository`.`enterprise_user_group_role`.`id` AS `id`,`lms_data_repository`.`enterprise_user_group_role`.`userId` AS `userId`,`lms_data_repository`.`enterprise_user_group_role`.`groupId` AS `groupId`,`lms_data_repository`.`enterprise_user_group_role`.`roleId` AS `roleId`,`lms_data_repository`.`enterprise_user_group_role`.`roleDeadline` AS `roleDeadline`,`lms_data_repository`.`enterprise_user_group_role`.`operation` AS `operation`,`lms_data_repository`.`enterprise_user_group_role`.`operationByUserId` AS `operationByUserId`,`lms_data_repository`.`enterprise_user_group_role`.`operationByUser` AS `operationByUser`,`lms_data_repository`.`enterprise_user_group_role`.`operationAt` AS `operationAt`from`lms_data_repository`.`enterprise_user_group_role`
_user_group_role_page
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_user_group_role_page` ASselect`lms_data_repository`.`enterprise_user_group_role_page`.`id` AS `id`,`lms_data_repository`.`enterprise_user_group_role_page`.`appId` AS `appId`,`lms_data_repository`.`enterprise_user_group_role_page`.`user` AS `user`,`lms_data_repository`.`enterprise_user_group_role_page`.`group` AS `group`,`lms_data_repository`.`enterprise_user_group_role_page`.`role` AS `role`,`lms_data_repository`.`enterprise_user_group_role_page`.`page` AS `page`,`lms_data_repository`.`enterprise_user_group_role_page`.`allowOrDeny` AS `allowOrDeny`,`lms_data_repository`.`enterprise_user_group_role_page`.`desc` AS `desc`,`lms_data_repository`.`enterprise_user_group_role_page`.`source` AS `source`,`lms_data_repository`.`enterprise_user_group_role_page`.`operation` AS `operation`,`lms_data_repository`.`enterprise_user_group_role_page`.`operationByUserId` AS `operationByUserId`,`lms_data_repository`.`enterprise_user_group_role_page`.`operationByUser` AS `operationByUser`,`lms_data_repository`.`enterprise_user_group_role_page`.`operationAt` AS `operationAt`from`lms_data_repository`.`enterprise_user_group_role_page`where((`lms_data_repository`.`enterprise_user_group_role_page`.`appId` = 'lms-exam')or (`lms_data_repository`.`enterprise_user_group_role_page`.`appId` = '*'))
_user_group_role_resource
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_user_group_role_resource` ASselect`lms_data_repository`.`enterprise_user_group_role_resource`.`id` AS `id`,`lms_data_repository`.`enterprise_user_group_role_resource`.`appId` AS `appId`,`lms_data_repository`.`enterprise_user_group_role_resource`.`user` AS `user`,`lms_data_repository`.`enterprise_user_group_role_resource`.`group` AS `group`,`lms_data_repository`.`enterprise_user_group_role_resource`.`role` AS `role`,`lms_data_repository`.`enterprise_user_group_role_resource`.`resource` AS `resource`,`lms_data_repository`.`enterprise_user_group_role_resource`.`allowOrDeny` AS `allowOrDeny`,`lms_data_repository`.`enterprise_user_group_role_resource`.`desc` AS `desc`,`lms_data_repository`.`enterprise_user_group_role_resource`.`source` AS `source`,`lms_data_repository`.`enterprise_user_group_role_resource`.`operation` AS `operation`,`lms_data_repository`.`enterprise_user_group_role_resource`.`operationByUserId` AS `operationByUserId`,`lms_data_repository`.`enterprise_user_group_role_resource`.`operationByUser` AS `operationByUser`,`lms_data_repository`.`enterprise_user_group_role_resource`.`operationAt` AS `operationAt`from`lms_data_repository`.`enterprise_user_group_role_resource`where((`lms_data_repository`.`enterprise_user_group_role_resource`.`appId` = 'lms-exam')or (`lms_data_repository`.`enterprise_user_group_role_resource`.`appId` = '*'))
_view01_user
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view01_user` ASselect`lms_data_repository`.`enterprise_view01_user`.`id` AS `id`,`lms_data_repository`.`enterprise_view01_user`.`idSequence` AS `idSequence`,`lms_data_repository`.`enterprise_view01_user`.`userId` AS `userId`,`lms_data_repository`.`enterprise_view01_user`.`username` AS `username`,`lms_data_repository`.`enterprise_view01_user`.`phoneNumber` AS `phoneNumber`,`lms_data_repository`.`enterprise_view01_user`.`email` AS `email`,`lms_data_repository`.`enterprise_view01_user`.`userStatus` AS `userStatus`,`lms_data_repository`.`enterprise_view01_user`.`qiweiId` AS `qiweiId`,`lms_data_repository`.`enterprise_view01_user`.`userConfig` AS `userConfig`,`lms_data_repository`.`enterprise_view01_user`.`password` AS `password`,`lms_data_repository`.`enterprise_view01_user`.`md5Salt` AS `md5Salt`,`lms_data_repository`.`enterprise_view01_user`.`clearTextPassword` AS `clearTextPassword`,`lms_data_repository`.`enterprise_view01_user`.`operation` AS `operation`,`lms_data_repository`.`enterprise_view01_user`.`operationByUserId` AS `operationByUserId`,`lms_data_repository`.`enterprise_view01_user`.`operationByUser` AS `operationByUser`,`lms_data_repository`.`enterprise_view01_user`.`operationAt` AS `operationAt`from`lms_data_repository`.`enterprise_view01_user`
_view02_user_app
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view02_user_app` ASselect`lms_data_repository`.`enterprise_view02_user_app`.`id` AS `id`,`lms_data_repository`.`enterprise_view02_user_app`.`userId` AS `userId`,`lms_data_repository`.`enterprise_view02_user_app`.`appId` AS `appId`from`lms_data_repository`.`enterprise_view02_user_app`where(`lms_data_repository`.`enterprise_view02_user_app`.`appId` = 'lms-exam')
view01_exam
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_exam` ASselect`e`.`id` AS `id`,`e`.`examId` AS `examId`,`e`.`examName` AS `examName`,`e`.`semester` AS `semester`,`e`.`year` AS `year`,`e`.`academicYear` AS `academicYear`,`e`.`segment` AS `segment`,`e`.`level` AS `level`,`e`.`examType` AS `examType`,`e`.`learningTrack` AS `learningTrack`,`e`.`subjectCount` AS `subjectCount`,`e`.`subjectList` AS `subjectList`,`e`.`subjectFullScore` AS `subjectFullScore`,`e`.`startDate` AS `startDate`,`e`.`endDate` AS `endDate`,`e`.`startMonth` AS `startMonth`,`e`.`subjectFullScoreList` AS `subjectFullScoreList`,`e`.`description` AS `description`,`e`.`isSendNotice` AS `isSendNotice`,`e`.`examStatus` AS `examStatus`,`e`.`examResultStatus` AS `examResultStatus`,`e`.`noticeTemplate` AS `noticeTemplate`,`e`.`noticeContent` AS `noticeContent`,`e`.`noticeDetailContent` AS `noticeDetailContent`,`e`.`noticeBatchId` AS `noticeBatchId`,`e`.`noticeCount` AS `noticeCount`,`e`.`restulUploadBatchId` AS `restulUploadBatchId`,`e`.`operation` AS `operation`,`e`.`operationAt` AS `operationAt`,`e`.`operationByUserId` AS `operationByUserId`,`e`.`operationByUser` AS `operationByUser`,count(`ro`.`studentId`) AS `studentCount`from(`exam` `e`left join `student_exam_result_overall` `ro` on ((`e`.`examId` = `ro`.`examId`)))where(`e`.`examStatus` <> '已作废')group by`e`.`examId`
view01_notice_task
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_notice_task` ASselect`nexam`.`id` AS `id`,`nexam`.`idSequence` AS `idSequence`,`nexam`.`taskId` AS `taskId`,`nexam`.`studentId` AS `studentId`,`nexam`.`studentName` AS `studentName`,`nexam`.`noticeTemplate` AS `noticeTemplate`,`nexam`.`noticeName` AS `noticeName`,`nexam`.`noticeContent` AS `noticeContent`,`nexam`.`noticeDetailContent` AS `noticeDetailContent`,`nexam`.`isGeneratePush` AS `isGeneratePush`,`nexam`.`createAt` AS `createAt`,`nexam`.`schedulePushAt` AS `schedulePushAt`,`nexam`.`isPushByWxTemplate` AS `isPushByWxTemplate`,`nexam`.`examId` AS `examId`,`nexam`.`appId` AS `appId`,`nexam`.`noticeBatchId` AS `noticeBatchId`,`nexam`.`noticeData` AS `noticeData`,`nexam`.`noticeStatus` AS `noticeStatus`,`nexam`.`operation` AS `operation`,`nexam`.`operationByUserId` AS `operationByUserId`,`nexam`.`operationByUser` AS `operationByUser`,`nexam`.`operationAt` AS `operationAt`,if(isnull(`n`.`id`), '否', '是') AS `isCollected`from(`lms_exam`.`notice_task` `nexam`left join `lms_exam`.`_dr__notice_task` `n` on ((`nexam`.`taskId` = `n`.`taskId`)))
view01_student
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_student` ASselect`s`.`id` AS `id`,`s`.`studentId` AS `studentId`,`s`.`idSequence` AS `idSequence`,`s`.`name` AS `name`,`s`.`classId` AS `classId`,`c`.`className` AS `className`,`c`.`classTagList` AS `classTagList`,`c`.`segment` AS `segment`,`c`.`level` AS `level`,`s`.`studentStatus` AS `studentStatus`,`s`.`remarks` AS `remarks`,`s`.`operation` AS `operation`,`s`.`operationByUserId` AS `operationByUserId`,`s`.`operationByUser` AS `operationByUser`,`s`.`operationAt` AS `operationAt`from(`lms_exam`.`_dr__student_basic` `s`left join `lms_exam`.`_dr__class` `c` on ((convert(`s`.`classId` using utf8mb4) = `c`.`classId`)))
view01_student_exam_result_overall
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_student_exam_result_overall` ASselect`student_exam_result_overall`.`id` AS `id`,`student_exam_result_overall`.`year` AS `year`,`student_exam_result_overall`.`examId` AS `examId`,`student_exam_result_overall`.`examName` AS `examName`,`student_exam_result_overall`.`studentId` AS `studentId`,`student_exam_result_overall`.`name` AS `name`,`student_exam_result_overall`.`academicYear` AS `academicYear`,`student_exam_result_overall`.`semester` AS `semester`,`student_exam_result_overall`.`segment` AS `segment`,`student_exam_result_overall`.`level` AS `level`,`student_exam_result_overall`.`classId` AS `classId`,`student_exam_result_overall`.`className` AS `className`,`student_exam_result_overall`.`classTagList` AS `classTagList`,`student_exam_result_overall`.`totalScore` AS `totalScore`,`student_exam_result_overall`.`overallClassRank` AS `overallClassRank`,`student_exam_result_overall`.`overallSchoolRank` AS `overallSchoolRank`,`student_exam_result_overall`.`overallClassPercentile` AS `overallClassPercentile`,`student_exam_result_overall`.`overallSchoolPercentile` AS `overallSchoolPercentile`,`student_exam_result_overall`.`attendance` AS `attendance`,`student_exam_result_overall`.`remarks` AS `remarks`,`student_exam_result_overall`.`resultStatus` AS `resultStatus`,`student_exam_result_overall`.`resultUploadBatchId` AS `resultUploadBatchId`,`student_exam_result_overall`.`resultUploadByUserId` AS `resultUploadByUserId`,`student_exam_result_overall`.`resultUploadByUser` AS `resultUploadByUser`,`student_exam_result_overall`.`resultUploadAt` AS `resultUploadAt`,`student_exam_result_overall`.`resultConfirmedByUserId` AS `resultConfirmedByUserId`,`student_exam_result_overall`.`resultConfirmedByUser` AS `resultConfirmedByUser`,`student_exam_result_overall`.`resultConfirmedAt` AS `resultConfirmedAt`,`student_exam_result_overall`.`operation` AS `operation`,`student_exam_result_overall`.`operationAt` AS `operationAt`,`student_exam_result_overall`.`operationByUserId` AS `operationByUserId`,`student_exam_result_overall`.`operationByUser` AS `operationByUser`,`exam`.`startDate` AS `examStartDate`from(`student_exam_result_overall`left join `exam` on ((`student_exam_result_overall`.`examId` = `exam`.`examId`)))
view01_student_exam_result_subject
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_student_exam_result_subject` ASselect`student_exam_result_subject`.`id` AS `id`,`student_exam_result_subject`.`year` AS `year`,`student_exam_result_subject`.`examId` AS `examId`,`student_exam_result_subject`.`examName` AS `examName`,`student_exam_result_subject`.`studentId` AS `studentId`,`student_exam_result_subject`.`name` AS `name`,`student_exam_result_subject`.`academicYear` AS `academicYear`,`student_exam_result_subject`.`semester` AS `semester`,`student_exam_result_subject`.`segment` AS `segment`,`student_exam_result_subject`.`level` AS `level`,`student_exam_result_subject`.`number` AS `number`,`student_exam_result_subject`.`classId` AS `classId`,`student_exam_result_subject`.`className` AS `className`,`student_exam_result_subject`.`classTagList` AS `classTagList`,`student_exam_result_subject`.`subjectId` AS `subjectId`,`student_exam_result_subject`.`subjectName` AS `subjectName`,`student_exam_result_subject`.`subjectSortOrder` AS `subjectSortOrder`,`student_exam_result_subject`.`score` AS `score`,`student_exam_result_subject`.`subjectClassRank` AS `subjectClassRank`,`student_exam_result_subject`.`subjectSchoolRank` AS `subjectSchoolRank`,`student_exam_result_subject`.`scoreDetails` AS `scoreDetails`,`student_exam_result_subject`.`resultStatus` AS `resultStatus`,`student_exam_result_subject`.`resultUploadBatchId` AS `resultUploadBatchId`,`student_exam_result_subject`.`resultUploadByUserId` AS `resultUploadByUserId`,`student_exam_result_subject`.`resultUploadByUser` AS `resultUploadByUser`,`student_exam_result_subject`.`resultUploadAt` AS `resultUploadAt`,`student_exam_result_subject`.`resultConfirmedByUserId` AS `resultConfirmedByUserId`,`student_exam_result_subject`.`resultConfirmedByUser` AS `resultConfirmedByUser`,`student_exam_result_subject`.`resultConfirmedAt` AS `resultConfirmedAt`,`student_exam_result_subject`.`operation` AS `operation`,`student_exam_result_subject`.`operationAt` AS `operationAt`,`student_exam_result_subject`.`operationByUserId` AS `operationByUserId`,`student_exam_result_subject`.`operationByUser` AS `operationByUser`,`exam`.`startDate` AS `examStartDate`from(`student_exam_result_subject`left join `exam` on ((`student_exam_result_subject`.`examId` = `exam`.`examId`)))
view02_exam_with_notice_count
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view02_exam_with_notice_count` ASselect`e`.`id` AS `id`,`e`.`examId` AS `examId`,`e`.`examName` AS `examName`,`e`.`semester` AS `semester`,`e`.`academicYear` AS `academicYear`,`e`.`segment` AS `segment`,`e`.`level` AS `level`,`e`.`examType` AS `examType`,`e`.`subjectCount` AS `subjectCount`,`e`.`subjectList` AS `subjectList`,`e`.`description` AS `description`,`e`.`isSendNotice` AS `isSendNotice`,`e`.`examStatus` AS `examStatus`,`e`.`examResultStatus` AS `examResultStatus`,`e`.`noticeTemplate` AS `noticeTemplate`,`e`.`noticeContent` AS `noticeContent`,`e`.`noticeDetailContent` AS `noticeDetailContent`,`e`.`noticeBatchId` AS `noticeBatchId`,`e`.`operation` AS `operation`,`e`.`operationAt` AS `operationAt`,`e`.`operationByUserId` AS `operationByUserId`,`e`.`operationByUser` AS `operationByUser`,`e`.`studentCount` AS `studentCount`,count(`n`.`taskId`) AS `noticeCount`from((`view01_exam` `e`left join `student_exam_result_overall` `ro` on ((`e`.`examId` = `ro`.`examId`)))left join `notice_task` `n` on ((`e`.`examId` = `n`.`examId`)))group by`e`.`examId`