数据结构

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 = 3 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 = 43 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '页面表; 软删除未启用;'

_record_history

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

_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 = 445 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '请求资源表; 软删除未启用; resourceId=`${appId}.${pageId}.${actionId}`'

_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 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 = 17 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户session表; deviceId 维度;软删除未启用;'

employee_hostel

  1. CREATE TABLE `employee_hostel` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `idSequence` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '自增id',
  4. `hostelId` varchar(255) DEFAULT NULL COMMENT '楼ID',
  5. `hostelName` varchar(255) DEFAULT NULL COMMENT '楼名称',
  6. `remarks` varchar(1023) DEFAULT NULL COMMENT '备注',
  7. `operation` varchar(255) DEFAULT NULL 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 '操作时间',
  11. PRIMARY KEY (`id`) USING BTREE,
  12. UNIQUE KEY `hostelId` (`hostelId`) USING BTREE,
  13. KEY `hostelName` (`hostelName`) USING BTREE
  14. ) ENGINE = InnoDB AUTO_INCREMENT = 26 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

employee_hostel_bed

  1. CREATE TABLE `employee_hostel_bed` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `employeeId` varchar(255) DEFAULT NULL,
  4. `idSequence` varchar(255) DEFAULT NULL,
  5. `hostelRoomId` varchar(255) DEFAULT NULL COMMENT '房间号',
  6. `hostelBedId` varchar(255) DEFAULT NULL COMMENT '床号',
  7. `remarks` text ,
  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. UNIQUE KEY `uniq` (`employeeId`, `hostelRoomId`, `hostelBedId`) USING BTREE,
  14. KEY `employeeId` (`employeeId`) USING BTREE,
  15. KEY `hostelRoomId` (`hostelRoomId`) USING BTREE,
  16. KEY `hostelBedId` (`hostelBedId`) USING BTREE
  17. ) ENGINE = InnoDB AUTO_INCREMENT = 190 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

employee_hostel_history

  1. CREATE TABLE `employee_hostel_history` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `year` varchar(255) DEFAULT NULL COMMENT '年',
  4. `semester` varchar(255) DEFAULT NULL COMMENT '学期',
  5. `employeeId` varchar(255) DEFAULT NULL,
  6. `hostelId` varchar(255) DEFAULT NULL COMMENT '宿舍楼ID',
  7. `hostelName` varchar(255) DEFAULT NULL COMMENT '宿舍楼',
  8. `hostelRoomId` varchar(255) DEFAULT NULL COMMENT '房间号',
  9. `hostelRoomName` varchar(255) DEFAULT NULL COMMENT '房间',
  10. `hostelBedId` varchar(255) DEFAULT NULL COMMENT '床号',
  11. `remarks` text ,
  12. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  13. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  14. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  15. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  16. PRIMARY KEY (`id`) USING BTREE,
  17. KEY `employeeId` (`employeeId`) USING BTREE,
  18. KEY `hostelRoomId` (`hostelRoomId`) USING BTREE,
  19. KEY `hostelBedId` (`hostelBedId`) USING BTREE
  20. ) ENGINE = InnoDB AUTO_INCREMENT = 108 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

employee_hostel_room

  1. CREATE TABLE `employee_hostel_room` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `idSequence` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '自增id',
  4. `hostelRoomId` varchar(255) DEFAULT NULL COMMENT '房间Id',
  5. `hostelRoomName` varchar(255) DEFAULT NULL COMMENT '房间名称',
  6. `hostelId` varchar(255) DEFAULT NULL COMMENT '楼ID',
  7. `floor` int(11) DEFAULT NULL COMMENT '楼层',
  8. `hostelRoomStatus` varchar(255) DEFAULT NULL COMMENT '房间状态',
  9. `bedCount` int(11) DEFAULT NULL COMMENT '床位数量',
  10. `hostelRoomType` varchar(255) DEFAULT NULL COMMENT '宿舍类型',
  11. `remarks` varchar(1023) DEFAULT NULL COMMENT '备注',
  12. `operation` varchar(255) DEFAULT NULL COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  13. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  14. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  15. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间',
  16. PRIMARY KEY (`id`) USING BTREE,
  17. UNIQUE KEY `hostelRoomId` (`hostelRoomId`) USING BTREE,
  18. KEY `hostelId` (`hostelId`) USING BTREE
  19. ) ENGINE = InnoDB AUTO_INCREMENT = 165 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

student_hostel

  1. CREATE TABLE `student_hostel` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `idSequence` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '自增id',
  4. `hostelId` varchar(255) DEFAULT NULL COMMENT '楼ID',
  5. `hostelName` varchar(255) DEFAULT NULL COMMENT '楼名称',
  6. `remarks` varchar(1023) DEFAULT NULL COMMENT '备注',
  7. `operation` varchar(255) DEFAULT NULL 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 '操作时间',
  11. PRIMARY KEY (`id`) USING BTREE,
  12. UNIQUE KEY `hostelId` (`hostelId`) USING BTREE,
  13. KEY `hostelName` (`hostelName`) USING BTREE
  14. ) ENGINE = InnoDB AUTO_INCREMENT = 26 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

student_hostel_bed

  1. CREATE TABLE `student_hostel_bed` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `studentId` varchar(255) DEFAULT NULL,
  4. `idSequence` varchar(255) DEFAULT NULL,
  5. `hostelRoomId` varchar(255) DEFAULT NULL COMMENT '房间号',
  6. `hostelBedId` varchar(255) DEFAULT NULL COMMENT '床号',
  7. `remarks` text ,
  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. UNIQUE KEY `uniq` (`studentId`, `hostelRoomId`, `hostelBedId`) USING BTREE,
  14. KEY `studentId` (`studentId`) USING BTREE,
  15. KEY `hostelRoomId` (`hostelRoomId`) USING BTREE,
  16. KEY `hostelBedId` (`hostelBedId`) USING BTREE
  17. ) ENGINE = InnoDB AUTO_INCREMENT = 4660 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

student_hostel_history

  1. CREATE TABLE `student_hostel_history` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `year` varchar(255) DEFAULT NULL COMMENT '年',
  4. `semester` varchar(255) DEFAULT NULL COMMENT '学期',
  5. `studentId` varchar(255) DEFAULT NULL,
  6. `classId` varchar(255) DEFAULT NULL COMMENT '班级ID',
  7. `hostelId` varchar(255) DEFAULT NULL COMMENT '宿舍楼ID',
  8. `hostelName` varchar(255) DEFAULT NULL COMMENT '宿舍楼名',
  9. `hostelRoomId` varchar(255) DEFAULT NULL COMMENT '房间号',
  10. `hostelRoomName` varchar(255) DEFAULT NULL COMMENT '房间名',
  11. `hostelBedId` varchar(255) DEFAULT NULL COMMENT '床号',
  12. `remarks` varchar(255) DEFAULT NULL,
  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. KEY `studentId` (`studentId`) USING BTREE,
  19. KEY `hostelRoomId` (`hostelRoomId`) USING BTREE,
  20. KEY `hostelBedId` (`hostelBedId`) USING BTREE
  21. ) ENGINE = InnoDB AUTO_INCREMENT = 2797 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

student_hostel_room

  1. CREATE TABLE `student_hostel_room` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `idSequence` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '自增id',
  4. `hostelRoomId` varchar(255) DEFAULT NULL COMMENT '房间Id',
  5. `hostelRoomName` varchar(255) DEFAULT NULL COMMENT '房间名称',
  6. `hostelId` varchar(255) DEFAULT NULL COMMENT '楼ID',
  7. `floor` int(11) DEFAULT NULL COMMENT '楼层',
  8. `hostelRoomStatus` varchar(255) DEFAULT NULL COMMENT '房间状态',
  9. `bedCount` int(11) DEFAULT NULL COMMENT '床位数量',
  10. `hostelRoomType` varchar(255) DEFAULT NULL COMMENT '宿舍类型',
  11. `remarks` varchar(1023) DEFAULT NULL COMMENT '备注',
  12. `operation` varchar(255) DEFAULT NULL COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  13. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  14. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  15. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间',
  16. PRIMARY KEY (`id`) USING BTREE,
  17. UNIQUE KEY `hostelRoomId` (`hostelRoomId`) USING BTREE,
  18. KEY `hostelId` (`hostelId`) USING BTREE
  19. ) ENGINE = InnoDB AUTO_INCREMENT = 558 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

视图

_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-hostel'
  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-hostel'
  22. )
  23. or (
  24. `lms_data_repository`.`enterprise_user_group_role_resource`.`appId` = '*'
  25. )
  26. )

_view01_employee_hostel

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view01_employee_hostel` AS
  2. select
  3. `employee_hostel`.`id` AS `id`,
  4. `employee_hostel`.`idSequence` AS `idSequence`,
  5. `employee_hostel`.`hostelId` AS `hostelId`,
  6. `employee_hostel`.`hostelName` AS `hostelName`,
  7. `employee_hostel`.`remarks` AS `remarks`,
  8. `employee_hostel`.`operation` AS `operation`,
  9. `employee_hostel`.`operationByUserId` AS `operationByUserId`,
  10. `employee_hostel`.`operationByUser` AS `operationByUser`,
  11. `employee_hostel`.`operationAt` AS `operationAt`,
  12. count(`_view01_employee_hostel_room`.`hostelRoomId`) AS `roomCount`,
  13. count(distinct `_view01_employee_hostel_room`.`floor`) AS `floorCount`,
  14. coalesce(sum(`_view01_employee_hostel_room`.`bedCount`), 0) AS `bedCount`,
  15. coalesce(
  16. sum(`_view01_employee_hostel_room`.`roomMemberCount`),
  17. 0
  18. ) AS `memberCount`,
  19. (
  20. coalesce(sum(`_view01_employee_hostel_room`.`bedCount`), 0) - coalesce(
  21. sum(`_view01_employee_hostel_room`.`roomMemberCount`),
  22. 0
  23. )
  24. ) AS `emptyBedCount`
  25. from
  26. (
  27. `employee_hostel`
  28. left join `_view01_employee_hostel_room` on (
  29. (
  30. `employee_hostel`.`hostelId` = `_view01_employee_hostel_room`.`hostelId`
  31. )
  32. )
  33. )
  34. group by
  35. `employee_hostel`.`hostelId`

_view01_employee_hostel_bed

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view01_employee_hostel_bed` AS
  2. select
  3. `lms_hostel`.`employee_hostel_bed`.`id` AS `id`,
  4. `lms_hostel`.`employee_hostel_bed`.`employeeId` AS `employeeId`,
  5. `lms_hostel`.`employee_hostel_bed`.`idSequence` AS `idSequence`,
  6. `lms_hostel`.`employee_hostel_bed`.`hostelRoomId` AS `hostelRoomId`,
  7. `lms_hostel`.`employee_hostel_bed`.`hostelBedId` AS `hostelBedId`,
  8. `lms_hostel`.`employee_hostel_bed`.`remarks` AS `remarks`,
  9. `lms_hostel`.`employee_hostel_bed`.`operation` AS `operation`,
  10. `lms_hostel`.`employee_hostel_bed`.`operationByUserId` AS `operationByUserId`,
  11. `lms_hostel`.`employee_hostel_bed`.`operationByUser` AS `operationByUser`,
  12. `lms_hostel`.`employee_hostel_bed`.`operationAt` AS `operationAt`,
  13. `_view02_employee`.`employeeName` AS `employeeName`,
  14. `_view02_employee`.`post` AS `post`,
  15. `_view02_employee`.`sex` AS `sex`,
  16. `_view02_employee`.`entryStatus` AS `entryStatus`
  17. from
  18. (
  19. `lms_hostel`.`employee_hostel_bed`
  20. left join `lms_hostel`.`_view02_employee` on (
  21. (
  22. `lms_hostel`.`employee_hostel_bed`.`employeeId` = `_view02_employee`.`employeeId`
  23. )
  24. )
  25. )

_view01_employee_hostel_room

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view01_employee_hostel_room` AS
  2. select
  3. `employee_hostel_room`.`id` AS `id`,
  4. `employee_hostel_room`.`idSequence` AS `idSequence`,
  5. `employee_hostel_room`.`hostelRoomId` AS `hostelRoomId`,
  6. `employee_hostel_room`.`hostelRoomName` AS `hostelRoomName`,
  7. `employee_hostel_room`.`hostelId` AS `hostelId`,
  8. `employee_hostel`.`hostelName` AS `hostelName`,
  9. `employee_hostel`.`remarks` AS `hostelRemarks`,
  10. `employee_hostel_room`.`floor` AS `floor`,
  11. `employee_hostel_room`.`hostelRoomStatus` AS `hostelRoomStatus`,
  12. `employee_hostel_room`.`bedCount` AS `bedCount`,
  13. `employee_hostel_room`.`hostelRoomType` AS `hostelRoomType`,
  14. `employee_hostel_room`.`remarks` AS `remarks`,
  15. `employee_hostel_room`.`operation` AS `operation`,
  16. `employee_hostel_room`.`operationByUserId` AS `operationByUserId`,
  17. `employee_hostel_room`.`operationByUser` AS `operationByUser`,
  18. `employee_hostel_room`.`operationAt` AS `operationAt`,
  19. count(`employee_hostel_bed`.`employeeId`) AS `roomMemberCount`
  20. from
  21. (
  22. (
  23. `employee_hostel_room`
  24. left join `employee_hostel` on (
  25. (
  26. `employee_hostel_room`.`hostelId` = `employee_hostel`.`hostelId`
  27. )
  28. )
  29. )
  30. left join `employee_hostel_bed` on (
  31. (
  32. `employee_hostel_room`.`hostelRoomId` = `employee_hostel_bed`.`hostelRoomId`
  33. )
  34. )
  35. )
  36. group by
  37. `employee_hostel_room`.`id`

_view01_student_hostel

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view01_student_hostel` AS
  2. select
  3. `student_hostel`.`id` AS `id`,
  4. `student_hostel`.`idSequence` AS `idSequence`,
  5. `student_hostel`.`hostelId` AS `hostelId`,
  6. `student_hostel`.`hostelName` AS `hostelName`,
  7. `student_hostel`.`remarks` AS `remarks`,
  8. `student_hostel`.`operation` AS `operation`,
  9. `student_hostel`.`operationByUserId` AS `operationByUserId`,
  10. `student_hostel`.`operationByUser` AS `operationByUser`,
  11. `student_hostel`.`operationAt` AS `operationAt`,
  12. count(`_view01_student_hostel_room`.`hostelRoomId`) AS `roomCount`,
  13. count(distinct `_view01_student_hostel_room`.`floor`) AS `floorCount`,
  14. coalesce(sum(`_view01_student_hostel_room`.`bedCount`), 0) AS `bedCount`,
  15. coalesce(
  16. sum(`_view01_student_hostel_room`.`roomMemberCount`),
  17. 0
  18. ) AS `memberCount`,
  19. (
  20. coalesce(sum(`_view01_student_hostel_room`.`bedCount`), 0) - coalesce(
  21. sum(`_view01_student_hostel_room`.`roomMemberCount`),
  22. 0
  23. )
  24. ) AS `emptyBedCount`
  25. from
  26. (
  27. `student_hostel`
  28. left join `_view01_student_hostel_room` on (
  29. (
  30. `student_hostel`.`hostelId` = `_view01_student_hostel_room`.`hostelId`
  31. )
  32. )
  33. )
  34. group by
  35. `student_hostel`.`hostelId`

_view01_student_hostel_bed

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view01_student_hostel_bed` AS
  2. select
  3. `lms_hostel`.`student_hostel_bed`.`id` AS `id`,
  4. `lms_hostel`.`student_hostel_bed`.`studentId` AS `studentId`,
  5. `lms_hostel`.`student_hostel_bed`.`idSequence` AS `idSequence`,
  6. `lms_hostel`.`student_hostel_bed`.`hostelRoomId` AS `hostelRoomId`,
  7. `lms_hostel`.`student_hostel_bed`.`hostelBedId` AS `hostelBedId`,
  8. `lms_hostel`.`student_hostel_bed`.`remarks` AS `remarks`,
  9. `lms_hostel`.`student_hostel_bed`.`operation` AS `operation`,
  10. `lms_hostel`.`student_hostel_bed`.`operationByUserId` AS `operationByUserId`,
  11. `lms_hostel`.`student_hostel_bed`.`operationByUser` AS `operationByUser`,
  12. `lms_hostel`.`student_hostel_bed`.`operationAt` AS `operationAt`,
  13. `_view02_student_basic_class`.`name` AS `name`,
  14. `_view02_student_basic_class`.`className` AS `className`,
  15. `_view02_student_basic_class`.`gender` AS `gender`,
  16. `_view02_student_basic_class`.`studentStatus` AS `studentStatus`
  17. from
  18. (
  19. `lms_hostel`.`student_hostel_bed`
  20. left join `lms_hostel`.`_view02_student_basic_class` on (
  21. (
  22. `lms_hostel`.`student_hostel_bed`.`studentId` = `_view02_student_basic_class`.`studentId`
  23. )
  24. )
  25. )

_view01_student_hostel_room

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view01_student_hostel_room` AS
  2. select
  3. `student_hostel_room`.`id` AS `id`,
  4. `student_hostel_room`.`idSequence` AS `idSequence`,
  5. `student_hostel_room`.`hostelRoomId` AS `hostelRoomId`,
  6. `student_hostel_room`.`hostelRoomName` AS `hostelRoomName`,
  7. `student_hostel_room`.`hostelId` AS `hostelId`,
  8. `student_hostel`.`hostelName` AS `hostelName`,
  9. `student_hostel`.`remarks` AS `hostelRemarks`,
  10. `student_hostel_room`.`floor` AS `floor`,
  11. `student_hostel_room`.`hostelRoomStatus` AS `hostelRoomStatus`,
  12. `student_hostel_room`.`bedCount` AS `bedCount`,
  13. `student_hostel_room`.`hostelRoomType` AS `hostelRoomType`,
  14. `student_hostel_room`.`remarks` AS `remarks`,
  15. `student_hostel_room`.`operation` AS `operation`,
  16. `student_hostel_room`.`operationByUserId` AS `operationByUserId`,
  17. `student_hostel_room`.`operationByUser` AS `operationByUser`,
  18. `student_hostel_room`.`operationAt` AS `operationAt`,
  19. count(`student_hostel_bed`.`studentId`) AS `roomMemberCount`
  20. from
  21. (
  22. (
  23. `student_hostel_room`
  24. left join `student_hostel` on (
  25. (
  26. `student_hostel_room`.`hostelId` = `student_hostel`.`hostelId`
  27. )
  28. )
  29. )
  30. left join `student_hostel_bed` on (
  31. (
  32. `student_hostel_room`.`hostelRoomId` = `student_hostel_bed`.`hostelRoomId`
  33. )
  34. )
  35. )
  36. group by
  37. `student_hostel_room`.`id`

_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_employee

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view02_employee` AS
  2. select
  3. `view01_employee`.`id` AS `id`,
  4. `view01_employee`.`employeeId` AS `employeeId`,
  5. `view01_employee`.`employeeName` AS `employeeName`,
  6. `view01_employee`.`idSequence` AS `idSequence`,
  7. `view01_employee`.`sex` AS `sex`,
  8. `view01_employee`.`age` AS `age`,
  9. `view01_employee`.`contactNumber` AS `contactNumber`,
  10. `view01_employee`.`emergencyContactNumber` AS `emergencyContactNumber`,
  11. `view01_employee`.`post` AS `post`,
  12. `view01_employee`.`politicalBackground` AS `politicalBackground`,
  13. `view01_employee`.`icNumber` AS `icNumber`,
  14. `view01_employee`.`dateOfBirth` AS `dateOfBirth`,
  15. `view01_employee`.`institution` AS `institution`,
  16. `view01_employee`.`major` AS `major`,
  17. `view01_employee`.`highestEducation` AS `highestEducation`,
  18. `view01_employee`.`teacherQualification` AS `teacherQualification`,
  19. `view01_employee`.`teacherQualificationLeaver` AS `teacherQualificationLeaver`,
  20. `view01_employee`.`teacherQualificationSubject` AS `teacherQualificationSubject`,
  21. `view01_employee`.`teacherCertificationNumber` AS `teacherCertificationNumber`,
  22. `view01_employee`.`teachingLevel` AS `teachingLevel`,
  23. `view01_employee`.`teachingSubject` AS `teachingSubject`,
  24. `view01_employee`.`residentialAddress` AS `residentialAddress`,
  25. `view01_employee`.`province` AS `province`,
  26. `view01_employee`.`city` AS `city`,
  27. `view01_employee`.`county` AS `county`,
  28. `view01_employee`.`dateOfEntry` AS `dateOfEntry`,
  29. `view01_employee`.`dateOfContractExpiration` AS `dateOfContractExpiration`,
  30. `view01_employee`.`cardNumber` AS `cardNumber`,
  31. `view01_employee`.`licensePlateNumber` AS `licensePlateNumber`,
  32. `view01_employee`.`employmentForms` AS `employmentForms`,
  33. `view01_employee`.`entryStatus` AS `entryStatus`,
  34. `view01_employee`.`status` AS `status`,
  35. `view01_employee`.`remarks` AS `remarks`,
  36. `view01_employee`.`leaveRequestStatus` AS `leaveRequestStatus`,
  37. `view01_employee`.`contactPerson` AS `contactPerson`,
  38. `view01_employee`.`educationExperience` AS `educationExperience`,
  39. `view01_employee`.`certificate` AS `certificate`,
  40. `view01_employee`.`salaryCard` AS `salaryCard`,
  41. `view01_employee`.`socialSecurity` AS `socialSecurity`,
  42. `view01_employee`.`trainingExperience` AS `trainingExperience`,
  43. `view01_employee`.`workExperience` AS `workExperience`,
  44. `view01_employee`.`operation` AS `operation`,
  45. `view01_employee`.`operationByUserId` AS `operationByUserId`,
  46. `view01_employee`.`operationByUser` AS `operationByUser`,
  47. `view01_employee`.`operationAt` AS `operationAt`,
  48. `view01_employee`.`orgId` AS `orgId`,
  49. `view01_employee`.`orgName` AS `orgName`
  50. from
  51. `lms_hr`.`view01_employee`

_view02_student_basic_class

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view02_student_basic_class` AS
  2. select
  3. `view01_student_basic_class`.`studentId` AS `studentId`,
  4. `view01_student_basic_class`.`name` AS `name`,
  5. `view01_student_basic_class`.`year` AS `year`,
  6. `view01_student_basic_class`.`academicYear` AS `academicYear`,
  7. `view01_student_basic_class`.`semester` AS `semester`,
  8. `view01_student_basic_class`.`classNum` AS `classNum`,
  9. `view01_student_basic_class`.`studentStatus` AS `studentStatus`,
  10. `view01_student_basic_class`.`segment` AS `segment`,
  11. `view01_student_basic_class`.`level` AS `level`,
  12. `view01_student_basic_class`.`remarks` AS `remarks`,
  13. `view01_student_basic_class`.`newRemarks` AS `newRemarks`,
  14. `view01_student_basic_class`.`gender` AS `gender`,
  15. `view01_student_basic_class`.`guardian2Contact` AS `guardian2Contact`,
  16. `view01_student_basic_class`.`guardian2Relationship` AS `guardian2Relationship`,
  17. `view01_student_basic_class`.`guardian2Name` AS `guardian2Name`,
  18. `view01_student_basic_class`.`guardian1Contact` AS `guardian1Contact`,
  19. `view01_student_basic_class`.`guardian1Relationship` AS `guardian1Relationship`,
  20. `view01_student_basic_class`.`guardian1Name` AS `guardian1Name`,
  21. `view01_student_basic_class`.`classId` AS `classId`,
  22. `view01_student_basic_class`.`className` AS `className`,
  23. `view01_student_basic_class`.`requestType` AS `requestType`,
  24. `view01_student_basic_class`.`completedClassAssignedYesOrNo` AS `completedClassAssignedYesOrNo`,
  25. `view01_student_basic_class`.`completedEnrollmentRecordYesOrNo` AS `completedEnrollmentRecordYesOrNo`,
  26. `view01_student_basic_class`.`completedLogisticsAssignedYesOrNo` AS `completedLogisticsAssignedYesOrNo`,
  27. `view01_student_basic_class`.`completedPaymentYesOrNo` AS `completedPaymentYesOrNo`,
  28. `view01_student_basic_class`.`completedEnrollmentYesOrNo` AS `completedEnrollmentYesOrNo`,
  29. `view01_student_basic_class`.`completedQuitYesOrNo` AS `completedQuitYesOrNo`,
  30. `view01_student_basic_class`.`id` AS `id`,
  31. `view01_student_basic_class`.`compeletedUpgradeYesOrNo` AS `compeletedUpgradeYesOrNo`,
  32. `view01_student_basic_class`.`enrollmentYear` AS `enrollmentYear`,
  33. `view01_student_basic_class`.`middleSchoolExamScore` AS `middleSchoolExamScore`,
  34. `view01_student_basic_class`.`number` AS `number`
  35. from
  36. `lms_student_admin`.`view01_student_basic_class`

_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-hostel'
  11. )

view01_student_hostel_detail

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_student_hostel_detail` AS
  2. select
  3. `student_hostel_bed`.`id` AS `id`,
  4. `student_hostel_bed`.`studentId` AS `studentId`,
  5. `student_hostel_bed`.`idSequence` AS `idSequence`,
  6. `student_hostel_room`.`hostelId` AS `hostelId`,
  7. `student_hostel`.`hostelName` AS `hostelName`,
  8. `student_hostel_bed`.`hostelRoomId` AS `hostelRoomId`,
  9. `student_hostel_room`.`hostelRoomName` AS `hostelRoomName`,
  10. `student_hostel_bed`.`hostelBedId` AS `hostelBedId`,
  11. `student_hostel_bed`.`remarks` AS `remarks`,
  12. `student_hostel_bed`.`operation` AS `operation`,
  13. `student_hostel_bed`.`operationByUserId` AS `operationByUserId`,
  14. `student_hostel_bed`.`operationByUser` AS `operationByUser`,
  15. `student_hostel_bed`.`operationAt` AS `operationAt`
  16. from
  17. (
  18. (
  19. `student_hostel_bed`
  20. left join `student_hostel_room` on (
  21. (
  22. `student_hostel_bed`.`hostelRoomId` = `student_hostel_room`.`hostelRoomId`
  23. )
  24. )
  25. )
  26. left join `student_hostel` on (
  27. (
  28. `student_hostel_room`.`hostelId` = `student_hostel`.`hostelId`
  29. )
  30. )
  31. )

view01_waiting_student

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_waiting_student` AS
  2. select
  3. `view01_student_basic_class`.`studentId` AS `studentId`,
  4. `view01_student_basic_class`.`name` AS `name`,
  5. `view01_student_basic_class`.`className` AS `className`,
  6. `view01_student_basic_class`.`gender` AS `gender`
  7. from
  8. (
  9. `lms_student_admin`.`view01_student_basic_class`
  10. left join `lms_hostel`.`student_hostel_bed` on (
  11. (
  12. `view01_student_basic_class`.`studentId` = `lms_hostel`.`student_hostel_bed`.`studentId`
  13. )
  14. )
  15. )
  16. where
  17. (
  18. isnull(`lms_hostel`.`student_hostel_bed`.`id`)
  19. and (
  20. `view01_student_basic_class`.`studentStatus` in ('新生', '在校')
  21. )
  22. )

view02_employee_hostel_detail

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view02_employee_hostel_detail` AS
  2. select
  3. `lms_hostel`.`employee_hostel_bed`.`employeeId` AS `employeeId`,
  4. `lms_hostel`.`employee_hostel_bed`.`hostelRoomId` AS `hostelRoomId`,
  5. `lms_hostel`.`employee_hostel_bed`.`hostelBedId` AS `hostelBedId`,
  6. `lms_hostel`.`employee_hostel_room`.`hostelRoomName` AS `hostelRoomName`,
  7. `lms_hostel`.`employee_hostel`.`hostelName` AS `hostelName`,
  8. `lms_hostel`.`employee_hostel_room`.`hostelId` AS `hostelId`,
  9. `_view02_employee`.`employeeName` AS `employeeName`
  10. from
  11. (
  12. (
  13. (
  14. `lms_hostel`.`employee_hostel_bed`
  15. left join `lms_hostel`.`employee_hostel_room` on (
  16. (
  17. `lms_hostel`.`employee_hostel_bed`.`hostelRoomId` = `lms_hostel`.`employee_hostel_room`.`hostelRoomId`
  18. )
  19. )
  20. )
  21. left join `lms_hostel`.`employee_hostel` on (
  22. (
  23. `lms_hostel`.`employee_hostel_room`.`hostelId` = `lms_hostel`.`employee_hostel`.`hostelId`
  24. )
  25. )
  26. )
  27. left join `lms_hostel`.`_view02_employee` on (
  28. (
  29. `lms_hostel`.`employee_hostel_bed`.`employeeId` = `_view02_employee`.`employeeId`
  30. )
  31. )
  32. )

view02_student_class_hostel

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view02_student_class_hostel` AS
  2. select
  3. `view01_student_basic_class`.`studentId` AS `studentId`,
  4. `view01_student_basic_class`.`name` AS `name`,
  5. `view01_student_basic_class`.`year` AS `year`,
  6. `view01_student_basic_class`.`academicYear` AS `academicYear`,
  7. `view01_student_basic_class`.`semester` AS `semester`,
  8. `view01_student_basic_class`.`classNum` AS `classNum`,
  9. `view01_student_basic_class`.`studentStatus` AS `studentStatus`,
  10. `view01_student_basic_class`.`level` AS `level`,
  11. `view01_student_basic_class`.`number` AS `number`,
  12. `view01_student_basic_class`.`classId` AS `classId`,
  13. `view01_student_basic_class`.`className` AS `className`,
  14. `lms_hostel`.`student_hostel_bed`.`hostelRoomId` AS `hostelRoomId`,
  15. `lms_hostel`.`student_hostel_bed`.`hostelBedId` AS `hostelBedId`
  16. from
  17. (
  18. `lms_student_admin`.`view01_student_basic_class`
  19. left join `lms_hostel`.`student_hostel_bed` on (
  20. (
  21. `view01_student_basic_class`.`studentId` = `lms_hostel`.`student_hostel_bed`.`studentId`
  22. )
  23. )
  24. )

view02_student_hostel_detail

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view02_student_hostel_detail` AS
  2. select
  3. `lms_hostel`.`student_hostel_bed`.`id` AS `id`,
  4. `lms_hostel`.`student_hostel_bed`.`studentId` AS `studentId`,
  5. `lms_hostel`.`student_hostel_bed`.`idSequence` AS `idSequence`,
  6. `lms_hostel`.`student_hostel_room`.`hostelId` AS `hostelId`,
  7. `lms_hostel`.`student_hostel`.`hostelName` AS `hostelName`,
  8. `lms_hostel`.`student_hostel_bed`.`hostelRoomId` AS `hostelRoomId`,
  9. `lms_hostel`.`student_hostel_room`.`hostelRoomName` AS `hostelRoomName`,
  10. `lms_hostel`.`student_hostel_bed`.`hostelBedId` AS `hostelBedId`,
  11. `lms_hostel`.`student_hostel_bed`.`remarks` AS `remarks`,
  12. `lms_hostel`.`student_hostel_bed`.`operation` AS `operation`,
  13. `lms_hostel`.`student_hostel_bed`.`operationByUserId` AS `operationByUserId`,
  14. `lms_hostel`.`student_hostel_bed`.`operationByUser` AS `operationByUser`,
  15. `lms_hostel`.`student_hostel_bed`.`operationAt` AS `operationAt`,
  16. `_view02_student_basic_class`.`name` AS `name`
  17. from
  18. (
  19. (
  20. (
  21. `lms_hostel`.`student_hostel_bed`
  22. left join `lms_hostel`.`student_hostel_room` on (
  23. (
  24. `lms_hostel`.`student_hostel_bed`.`hostelRoomId` = `lms_hostel`.`student_hostel_room`.`hostelRoomId`
  25. )
  26. )
  27. )
  28. left join `lms_hostel`.`student_hostel` on (
  29. (
  30. `lms_hostel`.`student_hostel_room`.`hostelId` = `lms_hostel`.`student_hostel`.`hostelId`
  31. )
  32. )
  33. )
  34. left join `lms_hostel`.`_view02_student_basic_class` on (
  35. (
  36. `lms_hostel`.`student_hostel_bed`.`studentId` = `_view02_student_basic_class`.`studentId`
  37. )
  38. )
  39. )