数据结构
12114表总览
普通表
_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 = 52 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` longtext 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 = 40438 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 = 460 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 '测试用例步骤;',`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_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 = 10 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户session表; deviceId 维度;软删除未启用;'
bill
CREATE TABLE `bill` (`id` int(11) NOT NULL AUTO_INCREMENT,`billId` varchar(255) DEFAULT NULL COMMENT '账单ID',`billBatchId` varchar(255) DEFAULT NULL COMMENT '批次ID',`studentId` varchar(255) DEFAULT NULL COMMENT '学生ID',`paymentType` varchar(255) DEFAULT NULL COMMENT '缴费类型',`paymentConfig` longtext COMMENT '缴费项目(项目/金额)',`reductionConfig` longtext COMMENT '减免项目(项目/金额)',`paymentItemActual` varchar(255) DEFAULT NULL COMMENT '实缴费项目(项目/金额)',`totalPayment` decimal(11, 2) DEFAULT NULL COMMENT '账单总额',`reductionTotal` decimal(11, 2) DEFAULT NULL COMMENT '减免总额',`scholarshipReductionTotal` decimal(11, 2) DEFAULT NULL COMMENT '奖学金抵扣总额',`totalPaymentDue` decimal(11, 2) DEFAULT NULL COMMENT '应缴费总额',`totalPaymentActual` decimal(11, 2) DEFAULT NULL COMMENT '实缴费总额',`totalPaymentOutstanding` decimal(11, 2) DEFAULT NULL COMMENT '待缴费总额',`paymentStatus` varchar(255) DEFAULT NULL COMMENT '缴费状态',`confirmationStatus` varchar(255) DEFAULT NULL COMMENT '确认状态',`billCompletedStatus` varchar(255) DEFAULT NULL COMMENT '缴费完成状态',`remarks` varchar(1023) 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,UNIQUE KEY `billId` (`billId`) USING BTREE,KEY `studentId` (`studentId`) USING BTREE,KEY `paymentType` (`paymentType`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 10180 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
bill_batch
CREATE TABLE `bill_batch` (`id` int(11) NOT NULL AUTO_INCREMENT,`idSequence` varchar(255) NOT NULL DEFAULT '' COMMENT '自增id',`billBatchId` varchar(255) DEFAULT NULL COMMENT '批次ID',`billBatchName` varchar(255) DEFAULT NULL COMMENT '批次名称',`paymentType` varchar(255) DEFAULT NULL COMMENT '缴费类型',`paymentConfig` longtext COMMENT '缴费项目配置(项目/金额)',`reductionConfig` longtext COMMENT '减免项目配置(项目/所需减免的人员)',`paymentPersonConfig` longtext COMMENT '缴费人员配置',`totalPayment` decimal(11, 2) DEFAULT NULL COMMENT '缴费总额',`remarks` varchar(1023) 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 ',`billBatchStatus` varchar(255) DEFAULT NULL COMMENT '批次状态; 结束生成, 正常',PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 9 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
bill_history
CREATE TABLE `bill_history` (`id` int(11) NOT NULL AUTO_INCREMENT,`billId` varchar(255) DEFAULT NULL COMMENT '账单ID',`billBatchId` varchar(255) DEFAULT NULL COMMENT '批次ID',`billBatchName` varchar(255) DEFAULT NULL COMMENT '批次名称',`studentId` varchar(255) DEFAULT NULL COMMENT '学生ID',`name` varchar(255) DEFAULT NULL COMMENT '姓名',`gender` varchar(255) DEFAULT NULL COMMENT '性别',`segment` varchar(255) DEFAULT NULL COMMENT '学部',`className` varchar(255) DEFAULT NULL COMMENT '班级号',`classId` varchar(255) DEFAULT NULL COMMENT '班级Id',`year` varchar(255) DEFAULT NULL COMMENT '学年',`semester` varchar(255) DEFAULT NULL COMMENT '学期',`paymentType` varchar(255) DEFAULT NULL COMMENT '缴费类型',`paymentConfig` longtext COMMENT '缴费项目(项目/金额)',`reductionConfig` longtext COMMENT '减免项目(项目/金额)',`paymentItemActual` varchar(255) DEFAULT NULL COMMENT '实缴费项目(项目/金额)',`totalPayment` decimal(11, 2) DEFAULT NULL COMMENT '账单总额',`reductionTotal` decimal(11, 2) DEFAULT NULL COMMENT '减免总额',`scholarshipReductionTotal` decimal(11, 2) DEFAULT NULL COMMENT '奖学金抵扣总额',`totalPaymentDue` decimal(11, 2) DEFAULT NULL COMMENT '应缴费总额',`totalPaymentActual` decimal(11, 2) DEFAULT NULL COMMENT '实缴费总额',`totalPaymentOutstanding` decimal(11, 2) DEFAULT NULL COMMENT '待缴费总额',`paymentStatus` varchar(255) DEFAULT NULL COMMENT '缴费状态',`confirmationStatus` varchar(255) DEFAULT NULL COMMENT '确认状态',`billCompletedStatus` varchar(255) DEFAULT NULL COMMENT '学生缴费完成状态',`remarks` varchar(1023) 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 ',`level` varchar(255) DEFAULT NULL COMMENT '年级',`number` varchar(255) DEFAULT NULL COMMENT '班级编号',`afterSchoolCareType` varchar(255) DEFAULT NULL COMMENT '托管模式',`freshmanOrReturning` varchar(255) DEFAULT NULL COMMENT '新生/老生',PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
payment_record
CREATE TABLE `payment_record` (`id` int(11) NOT NULL AUTO_INCREMENT,`idSequence` int(11) DEFAULT NULL COMMENT '自增id',`paymentRecordId` varchar(255) DEFAULT NULL COMMENT '缴费ID',`billId` varchar(255) DEFAULT NULL COMMENT '账单ID',`paymentAmount` decimal(11, 2) DEFAULT NULL COMMENT '缴费金额',`paymentAt` varchar(255) DEFAULT NULL 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) ENGINE = InnoDB AUTO_INCREMENT = 2982 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
student_scholarship
CREATE TABLE `student_scholarship` (`id` int(11) NOT NULL AUTO_INCREMENT,`studentId` varchar(255) DEFAULT NULL COMMENT '学生ID',`scholarshipTotal` decimal(11, 2) DEFAULT '0.00' COMMENT '奖学金总额度',`scholarshipUnused` decimal(11, 2) DEFAULT '0.00' COMMENT '剩余额度',`scholarshipUsed` decimal(11, 2) DEFAULT '0.00' 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 `uniq` (`studentId`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
student_scholarship_record
CREATE TABLE `student_scholarship_record` (`id` int(11) NOT NULL AUTO_INCREMENT,`idSequence` varchar(255) DEFAULT NULL COMMENT '自增id',`scholarshipRecordId` varchar(255) DEFAULT NULL COMMENT '奖学金明细ID',`year` varchar(255) DEFAULT NULL COMMENT '自然年',`semester` varchar(255) DEFAULT NULL COMMENT '学期',`studentId` varchar(255) DEFAULT NULL COMMENT '学生ID',`transactionType` varchar(255) DEFAULT NULL COMMENT '交易类型;学费抵扣,奖学金发放,转出',`transactionAmount` decimal(11, 2) DEFAULT NULL COMMENT '交易金额',`transactionAt` varchar(255) DEFAULT NULL COMMENT '交易时间',`remarks` varchar(1023) 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 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
student_semester_scholarship
CREATE TABLE `student_semester_scholarship` (`id` int(11) NOT NULL AUTO_INCREMENT,`year` varchar(255) DEFAULT NULL COMMENT '自然年',`semester` varchar(255) DEFAULT NULL COMMENT '学期',`studentId` varchar(255) DEFAULT NULL COMMENT '学生ID',`semesterScholarship` decimal(10, 2) DEFAULT NULL 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 ',`semesterScholarshipUsed` decimal(10, 2) DEFAULT '0.00' COMMENT '本学期奖学金已使用额度',`semesterScholarshipUnused` decimal(10, 2) DEFAULT '0.00' COMMENT '本学期奖学金剩余额度',PRIMARY KEY (`id`) USING BTREE,UNIQUE KEY `uniq` (`year`, `semester`, `studentId`) USING BTREE,KEY `indexStudent` (`studentId`) USING BTREE) ENGINE = InnoDB 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`
_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-finance')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-finance')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-finance')
tuition_bill_order
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `tuition_bill_order` ASselect`lms_data_repository`.`lms_notice__tuition_bill_order`.`id` AS `id`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`idSequence` AS `idSequence`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`studentId` AS `studentId`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`classId` AS `classId`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`billId` AS `billId`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`billInfo` AS `billInfo`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`tuitionOrderId` AS `tuitionOrderId`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`amount` AS `amount`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`traceNo` AS `traceNo`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`bocPayLs` AS `bocPayLs`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`bocQrCode` AS `bocQrCode`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`bocResponse` AS `bocResponse`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`bocNotify` AS `bocNotify`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`bocNotifyAt` AS `bocNotifyAt`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`paymentStatus` AS `paymentStatus`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`retryCount` AS `retryCount`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`createAt` AS `createAt`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`createUser` AS `createUser`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`operation` AS `operation`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`operationByUserId` AS `operationByUserId`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`operationByUser` AS `operationByUser`,`lms_data_repository`.`lms_notice__tuition_bill_order`.`operationAt` AS `operationAt`from`lms_data_repository`.`lms_notice__tuition_bill_order`
view00_student_basic_class
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view00_student_basic_class` ASselect`view01_student_basic_class`.`studentId` AS `studentId`,`view01_student_basic_class`.`name` AS `name`,`view01_student_basic_class`.`academicYear` AS `academicYear`,`view01_student_basic_class`.`classNum` AS `classNum`,`view01_student_basic_class`.`studentStatus` AS `studentStatus`,`view01_student_basic_class`.`remarks` AS `remarks`,`view01_student_basic_class`.`newRemarks` AS `newRemarks`,`view01_student_basic_class`.`gender` AS `gender`,`view01_student_basic_class`.`guardian2Contact` AS `guardian2Contact`,`view01_student_basic_class`.`guardian2Relationship` AS `guardian2Relationship`,`view01_student_basic_class`.`guardian2Name` AS `guardian2Name`,`view01_student_basic_class`.`guardian1Contact` AS `guardian1Contact`,`view01_student_basic_class`.`guardian1Relationship` AS `guardian1Relationship`,`view01_student_basic_class`.`guardian1Name` AS `guardian1Name`,`view01_student_basic_class`.`classId` AS `classId`,`view01_student_basic_class`.`className` AS `className`,`view01_student_basic_class`.`requestType` AS `requestType`,`view01_student_basic_class`.`completedClassAssignedYesOrNo` AS `completedClassAssignedYesOrNo`,`view01_student_basic_class`.`completedEnrollmentRecordYesOrNo` AS `completedEnrollmentRecordYesOrNo`,`view01_student_basic_class`.`completedLogisticsAssignedYesOrNo` AS `completedLogisticsAssignedYesOrNo`,`view01_student_basic_class`.`completedPaymentYesOrNo` AS `completedPaymentYesOrNo`,`view01_student_basic_class`.`completedEnrollmentYesOrNo` AS `completedEnrollmentYesOrNo`,`view01_student_basic_class`.`completedQuitYesOrNo` AS `completedQuitYesOrNo`,`view01_student_basic_class`.`id` AS `id`,`view01_student_basic_class`.`compeletedUpgradeYesOrNo` AS `compeletedUpgradeYesOrNo`,`view01_student_basic_class`.`enrollmentYear` AS `enrollmentYear`,`view01_student_basic_class`.`enrollmentSemester` AS `enrollmentSemester`,`view01_student_basic_class`.`enrollmentSegment` AS `enrollmentSegment`,`view01_student_basic_class`.`enrollmentLevel` AS `enrollmentLevel`,`view01_student_basic_class`.`middleSchoolExamScore` AS `middleSchoolExamScore`,`view01_student_basic_class`.`operationAt` AS `operationAt`,`view01_student_basic_class`.`number` AS `number`,`view01_student_basic_class`.`icNumber` AS `icNumber`,`view01_student_basic_class`.`afterSchoolCareType` AS `afterSchoolCareType`,`view01_student_basic_class`.`freshmanOrReturning` AS `freshmanOrReturning`,`lms_finance`.`student_scholarship`.`scholarshipTotal` AS `scholarshipTotal`,`lms_finance`.`student_scholarship`.`scholarshipUsed` AS `scholarshipUsed`,`lms_finance`.`student_scholarship`.`scholarshipUnused` AS `scholarshipUnused`,`lms_finance`.`student_semester_scholarship`.`semesterScholarship` AS `semesterScholarship`,`lms_finance`.`student_semester_scholarship`.`semesterScholarshipUsed` AS `semesterScholarshipUsed`,`lms_finance`.`student_semester_scholarship`.`semesterScholarshipUnused` AS `semesterScholarshipUnused`,(casewhen (`view01_student_basic_class`.`year` is not null) then `view01_student_basic_class`.`year`else (casewhen (`view01_student_basic_class`.`enrollmentSemester` = '秋季') then substring_index(`view01_student_basic_class`.`enrollmentYear`,'-',1)else substring_index(`view01_student_basic_class`.`enrollmentYear`,'-',- (1))end)end) AS `year`,(casewhen (`view01_student_basic_class`.`semester` is not null) then `view01_student_basic_class`.`semester`else `view01_student_basic_class`.`enrollmentSemester`end) AS `semester`,(casewhen (`view01_student_basic_class`.`segment` is not null) then convert(`view01_student_basic_class`.`segment` using utf8mb4)else `view01_student_basic_class`.`enrollmentSegment`end) AS `segment`,(casewhen (`view01_student_basic_class`.`level` is not null) then `view01_student_basic_class`.`level`else `view01_student_basic_class`.`enrollmentLevel`end) AS `level`from((`lms_student_admin`.`view01_student_basic_class`left join `lms_finance`.`student_scholarship` on ((`lms_finance`.`student_scholarship`.`studentId` = `view01_student_basic_class`.`studentId`)))left join `lms_finance`.`student_semester_scholarship` on (((`lms_finance`.`student_semester_scholarship`.`studentId` = `view01_student_basic_class`.`studentId`)and (`lms_finance`.`student_semester_scholarship`.`year` = (casewhen (`view01_student_basic_class`.`year` is not null) then `view01_student_basic_class`.`year`else (casewhen (`view01_student_basic_class`.`enrollmentSemester` = '秋季') then substring_index(`view01_student_basic_class`.`enrollmentYear`,'-',1)else substring_index(`view01_student_basic_class`.`enrollmentYear`,'-',- (1))end)end))and (`lms_finance`.`student_semester_scholarship`.`semester` = (casewhen (`view01_student_basic_class`.`semester` is not null) then `view01_student_basic_class`.`semester`else `view01_student_basic_class`.`enrollmentSemester`end)))))
view01_bill
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_bill` ASselect`lms_finance`.`bill`.`id` AS `id`,`lms_finance`.`bill`.`billId` AS `billId`,`lms_finance`.`bill`.`billBatchId` AS `billBatchId`,`lms_finance`.`bill`.`studentId` AS `studentId`,`lms_finance`.`bill`.`paymentType` AS `paymentType`,`lms_finance`.`bill`.`paymentConfig` AS `paymentConfig`,`lms_finance`.`bill`.`reductionConfig` AS `reductionConfig`,`lms_finance`.`bill`.`paymentItemActual` AS `paymentItemActual`,`lms_finance`.`bill`.`totalPayment` AS `totalPayment`,`lms_finance`.`bill`.`reductionTotal` AS `reductionTotal`,`lms_finance`.`bill`.`scholarshipReductionTotal` AS `scholarshipReductionTotal`,`lms_finance`.`bill`.`totalPaymentDue` AS `totalPaymentDue`,`lms_finance`.`bill`.`totalPaymentActual` AS `totalPaymentActual`,`lms_finance`.`bill`.`totalPaymentOutstanding` AS `totalPaymentOutstanding`,`lms_finance`.`bill`.`paymentStatus` AS `paymentStatus`,`lms_finance`.`bill`.`confirmationStatus` AS `confirmationStatus`,`lms_finance`.`bill`.`remarks` AS `remarks`,`lms_finance`.`bill`.`operation` AS `operation`,`lms_finance`.`bill`.`operationByUserId` AS `operationByUserId`,`lms_finance`.`bill`.`operationByUser` AS `operationByUser`,`lms_finance`.`bill`.`operationAt` AS `operationAt`,`lms_finance`.`bill_batch`.`billBatchName` AS `billBatchName`,`view00_student_basic_class`.`name` AS `name`,`view00_student_basic_class`.`segment` AS `segment`,`view00_student_basic_class`.`gender` AS `gender`,`view00_student_basic_class`.`className` AS `className`,`view00_student_basic_class`.`level` AS `level`,`view00_student_basic_class`.`number` AS `number`,`view00_student_basic_class`.`classId` AS `classId`,`view00_student_basic_class`.`year` AS `year`,`view00_student_basic_class`.`semester` AS `semester`,`view00_student_basic_class`.`scholarshipTotal` AS `scholarshipTotal`,`view00_student_basic_class`.`scholarshipUsed` AS `scholarshipUsed`,`view00_student_basic_class`.`scholarshipUnused` AS `scholarshipUnused`,`view00_student_basic_class`.`semesterScholarship` AS `semesterScholarship`,`view00_student_basic_class`.`semesterScholarshipUsed` AS `semesterScholarshipUsed`,`view00_student_basic_class`.`semesterScholarshipUnused` AS `semesterScholarshipUnused`,`view00_student_basic_class`.`afterSchoolCareType` AS `afterSchoolCareType`,`view00_student_basic_class`.`freshmanOrReturning` AS `freshmanOrReturning`,`lms_finance`.`bill`.`billCompletedStatus` AS `billCompletedStatus`from((`lms_finance`.`bill`left join `lms_finance`.`bill_batch` on ((`lms_finance`.`bill_batch`.`billBatchId` = `lms_finance`.`bill`.`billBatchId`)))left join `lms_finance`.`view00_student_basic_class` on ((`view00_student_basic_class`.`studentId` = `lms_finance`.`bill`.`studentId`)))
view01_bill_batch
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_bill_batch` ASselect`bill_batch`.`id` AS `id`,`bill_batch`.`idSequence` AS `idSequence`,`bill_batch`.`billBatchId` AS `billBatchId`,`bill_batch`.`billBatchName` AS `billBatchName`,`bill_batch`.`paymentType` AS `paymentType`,`bill_batch`.`paymentConfig` AS `paymentConfig`,`bill_batch`.`reductionConfig` AS `reductionConfig`,`bill_batch`.`paymentPersonConfig` AS `paymentPersonConfig`,`bill_batch`.`totalPayment` AS `totalPayment`,`bill_batch`.`remarks` AS `remarks`,`bill_batch`.`operation` AS `operation`,`bill_batch`.`operationByUserId` AS `operationByUserId`,`bill_batch`.`operationByUser` AS `operationByUser`,`bill_batch`.`operationAt` AS `operationAt`,`bill_batch`.`billBatchStatus` AS `billBatchStatus`,count(`bill`.`studentId`) AS `billNumber`from(`bill_batch`left join `bill` on ((`bill_batch`.`billBatchId` = `bill`.`billBatchId`)))group by`bill_batch`.`billBatchId`
view01_student_basic
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_student_basic` ASselect`lms_student_admin`.`student_basic`.`id` AS `id`,`lms_student_admin`.`student_basic`.`enrollmentYear` AS `enrollmentYear`,`lms_student_admin`.`student_basic`.`enrollmentSemester` AS `enrollmentSemester`,`lms_student_admin`.`student_basic`.`enrollmentDate` AS `enrollmentDate`,`lms_student_admin`.`student_basic`.`studentId` AS `studentId`,`lms_student_admin`.`student_basic`.`classId` AS `classId`,`lms_student_admin`.`student_basic`.`idSequence` AS `idSequence`,`lms_student_admin`.`student_basic`.`enrollmentSegment` AS `enrollmentSegment`,`lms_student_admin`.`student_basic`.`enrollmentLevel` AS `enrollmentLevel`,`lms_student_admin`.`student_basic`.`enrollmentClassId` AS `enrollmentClassId`,`lms_student_admin`.`student_basic`.`name` AS `name`,`lms_student_admin`.`student_basic`.`gender` AS `gender`,`lms_student_admin`.`student_basic`.`studentFeeStatus` AS `studentFeeStatus`,`lms_student_admin`.`student_basic`.`studentStatus` AS `studentStatus`,`lms_student_admin`.`student_basic`.`icNumber` AS `icNumber`,`lms_student_admin`.`student_basic`.`scholarshipLevel` AS `scholarshipLevel`,`lms_student_admin`.`student_basic`.`requestType` AS `requestType`,`lms_student_admin`.`student_basic`.`afterSchoolCareType` AS `afterSchoolCareType`,`lms_student_admin`.`student_basic`.`residentialAddress` AS `residentialAddress`,`lms_student_admin`.`student_basic`.`guardian1Name` AS `guardian1Name`,`lms_student_admin`.`student_basic`.`guardian1Relationship` AS `guardian1Relationship`,`lms_student_admin`.`student_basic`.`guardian1Contact` AS `guardian1Contact`,`lms_student_admin`.`student_basic`.`guardian1ResidentialAddress` AS `guardian1ResidentialAddress`,`lms_student_admin`.`student_basic`.`guardian2Name` AS `guardian2Name`,`lms_student_admin`.`student_basic`.`guardian2Relationship` AS `guardian2Relationship`,`lms_student_admin`.`student_basic`.`guardian2Contact` AS `guardian2Contact`,`lms_student_admin`.`student_basic`.`guardian2ResidentialAddress` AS `guardian2ResidentialAddress`,`lms_student_admin`.`student_basic`.`remarks` AS `remarks`,`lms_student_admin`.`student_basic`.`newRemarks` AS `newRemarks`,`lms_student_admin`.`student_basic`.`hostelName` AS `hostelName`,`lms_student_admin`.`student_basic`.`hostelUnitNumber` AS `hostelUnitNumber`,`lms_student_admin`.`student_basic`.`hostelBedId` AS `hostelBedId`,`lms_student_admin`.`student_basic`.`dining_canteen_table` AS `dining_canteen_table`,`lms_student_admin`.`student_basic`.`completedEnrollmentRecordYesOrNo` AS `completedEnrollmentRecordYesOrNo`,`lms_student_admin`.`student_basic`.`completedClassAssignedYesOrNo` AS `completedClassAssignedYesOrNo`,`lms_student_admin`.`student_basic`.`completedLogisticsAssignedYesOrNo` AS `completedLogisticsAssignedYesOrNo`,`lms_student_admin`.`student_basic`.`completedPaymentYesOrNo` AS `completedPaymentYesOrNo`,`lms_student_admin`.`student_basic`.`completedEnrollmentYesOrNo` AS `completedEnrollmentYesOrNo`,`lms_student_admin`.`student_basic`.`completedQuitYesOrNo` AS `completedQuitYesOrNo`,`lms_student_admin`.`student_basic`.`compeletedUpgradeYesOrNo` AS `compeletedUpgradeYesOrNo`,`lms_student_admin`.`student_basic`.`enrolledBy` AS `enrolledBy`,`lms_student_admin`.`student_basic`.`classAssignedBy` AS `classAssignedBy`,`lms_student_admin`.`student_basic`.`paymentReceivedBy` AS `paymentReceivedBy`,`lms_student_admin`.`student_basic`.`checkPaymentStatusBy` AS `checkPaymentStatusBy`,`lms_student_admin`.`student_basic`.`hostelAssignedBy` AS `hostelAssignedBy`,`lms_student_admin`.`student_basic`.`enrollmentApprovedBy` AS `enrollmentApprovedBy`,`lms_student_admin`.`student_basic`.`quitApprovedBy` AS `quitApprovedBy`,`lms_student_admin`.`student_basic`.`operation` AS `operation`,`lms_student_admin`.`student_basic`.`operationAt` AS `operationAt`,`lms_student_admin`.`student_basic`.`operationByUserId` AS `operationByUserId`,`lms_student_admin`.`student_basic`.`operationByUser` AS `operationByUser`,`lms_student_admin`.`student_basic`.`completedQuitAssignedYesOrNo` AS `completedQuitAssignedYesOrNo`,`lms_student_admin`.`student_basic`.`quitHostelAssignedBy` AS `quitHostelAssignedBy`,`lms_student_admin`.`student_basic`.`completedQuitPaymentYesOrNo` AS `completedQuitPaymentYesOrNo`,`lms_student_admin`.`student_basic`.`quitPaymentBy` AS `quitPaymentBy`,`lms_student_admin`.`student_basic`.`middleSchoolExamScore` AS `middleSchoolExamScore`,`lms_student_admin`.`student_basic`.`middleSchoolExamSequence` AS `middleSchoolExamSequence`from`lms_student_admin`.`student_basic`
view01_student_scholarship
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_student_scholarship` ASselect`lms_finance`.`student_scholarship`.`id` AS `id`,`lms_finance`.`student_scholarship`.`studentId` AS `studentId`,`lms_finance`.`student_scholarship`.`scholarshipTotal` AS `scholarshipTotal`,`lms_finance`.`student_scholarship`.`scholarshipUnused` AS `scholarshipUnused`,`lms_finance`.`student_scholarship`.`scholarshipUsed` AS `scholarshipUsed`,`lms_finance`.`student_scholarship`.`operation` AS `operation`,`lms_finance`.`student_scholarship`.`operationByUserId` AS `operationByUserId`,`lms_finance`.`student_scholarship`.`operationByUser` AS `operationByUser`,`lms_finance`.`student_scholarship`.`operationAt` AS `operationAt`,`view00_student_basic_class`.`name` AS `name`,`view00_student_basic_class`.`segment` AS `segment`,`view00_student_basic_class`.`gender` AS `gender`,`view00_student_basic_class`.`className` AS `className`,`view00_student_basic_class`.`level` AS `level`,`view00_student_basic_class`.`year` AS `year`,`view00_student_basic_class`.`semester` AS `semester`,`view00_student_basic_class`.`classId` AS `classId`,`view00_student_basic_class`.`studentStatus` AS `studentStatus`,`lms_finance`.`student_semester_scholarship`.`semesterScholarship` AS `semesterScholarship`,`lms_finance`.`student_semester_scholarship`.`semesterScholarshipUsed` AS `semesterScholarshipUsed`,`lms_finance`.`student_semester_scholarship`.`semesterScholarshipUnused` AS `semesterScholarshipUnused`from((`lms_finance`.`student_scholarship`left join `lms_finance`.`view00_student_basic_class` on ((`view00_student_basic_class`.`studentId` = `lms_finance`.`student_scholarship`.`studentId`)))left join `lms_finance`.`student_semester_scholarship` on (((`view00_student_basic_class`.`year` = `lms_finance`.`student_semester_scholarship`.`year`)and (`view00_student_basic_class`.`semester` = `lms_finance`.`student_semester_scholarship`.`semester`)and (`lms_finance`.`student_scholarship`.`studentId` = `lms_finance`.`student_semester_scholarship`.`studentId`))))group by`lms_finance`.`student_scholarship`.`id`
view01_student_scholarship_record
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_student_scholarship_record` ASselect`lms_finance`.`student_scholarship_record`.`id` AS `id`,`lms_finance`.`student_scholarship_record`.`idSequence` AS `idSequence`,`lms_finance`.`student_scholarship_record`.`scholarshipRecordId` AS `scholarshipRecordId`,`lms_finance`.`student_scholarship_record`.`year` AS `year`,`lms_finance`.`student_scholarship_record`.`semester` AS `semester`,`lms_finance`.`student_scholarship_record`.`studentId` AS `studentId`,`lms_finance`.`student_scholarship_record`.`transactionType` AS `transactionType`,`lms_finance`.`student_scholarship_record`.`transactionAmount` AS `transactionAmount`,`lms_finance`.`student_scholarship_record`.`transactionAt` AS `transactionAt`,`lms_finance`.`student_scholarship_record`.`remarks` AS `remarks`,`lms_finance`.`student_scholarship_record`.`operation` AS `operation`,`lms_finance`.`student_scholarship_record`.`operationByUserId` AS `operationByUserId`,`lms_finance`.`student_scholarship_record`.`operationByUser` AS `operationByUser`,`lms_finance`.`student_scholarship_record`.`operationAt` AS `operationAt`,`view00_student_basic_class`.`name` AS `name`,`view00_student_basic_class`.`segment` AS `segment`,`view00_student_basic_class`.`gender` AS `gender`,`view00_student_basic_class`.`className` AS `className`,`view00_student_basic_class`.`level` AS `level`from(`lms_finance`.`student_scholarship_record`left join `lms_finance`.`view00_student_basic_class` on ((`view00_student_basic_class`.`studentId` = `lms_finance`.`student_scholarship_record`.`studentId`)))