数据结构

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` longtext 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 = 582 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 = 392 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 维度;软删除未启用;'

restaurant

  1. CREATE TABLE `restaurant` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `idSequence` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '自增id',
  4. `restaurantId` varchar(255) DEFAULT NULL COMMENT '餐厅ID',
  5. `restaurantName` varchar(255) DEFAULT NULL COMMENT '餐厅名称',
  6. `tableQuantity` int(11) DEFAULT NULL COMMENT '餐桌数量',
  7. `tableSeat` int(11) DEFAULT NULL COMMENT '每桌席位',
  8. `startTableNumber` int(11) DEFAULT NULL COMMENT '起始桌号',
  9. `remarks` varchar(1023) DEFAULT NULL COMMENT '备注',
  10. `operation` varchar(255) DEFAULT NULL COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  11. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  12. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  13. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间',
  14. PRIMARY KEY (`id`) USING BTREE,
  15. UNIQUE KEY `restaurantId` (`restaurantId`) USING BTREE,
  16. KEY `restaurantName` (`restaurantName`) USING BTREE
  17. ) ENGINE = InnoDB AUTO_INCREMENT = 29 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

restaurant_student

  1. CREATE TABLE `restaurant_student` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `studentId` varchar(255) DEFAULT NULL,
  4. `idSequence` varchar(255) DEFAULT NULL,
  5. `restaurantId` varchar(255) DEFAULT NULL COMMENT '餐厅id',
  6. `tableNumber` int(11) DEFAULT NULL COMMENT '桌号',
  7. `seatNumber` int(11) DEFAULT NULL COMMENT '座位号',
  8. `batch` varchar(255) DEFAULT NULL COMMENT '用餐批次',
  9. `remarks` text ,
  10. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  11. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  12. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  13. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  14. PRIMARY KEY (`id`) USING BTREE,
  15. KEY `studentId` (`studentId`) USING BTREE,
  16. KEY `restaurantId` (`restaurantId`) USING BTREE,
  17. KEY `batch` (`batch`) USING BTREE
  18. ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin

restaurant_student_history

  1. CREATE TABLE `restaurant_student_history` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `year` varchar(255) DEFAULT NULL,
  4. `semester` varchar(255) DEFAULT NULL,
  5. `studentId` varchar(255) DEFAULT NULL,
  6. `classId` varchar(255) DEFAULT NULL,
  7. `restaurantId` varchar(255) DEFAULT NULL COMMENT '餐厅id',
  8. `restaurantName` varchar(255) DEFAULT NULL COMMENT '餐厅名称',
  9. `tableNumber` int(11) DEFAULT NULL COMMENT '桌号',
  10. `seatNumber` int(11) DEFAULT NULL COMMENT '座位号',
  11. `batch` varchar(255) DEFAULT NULL COMMENT '用餐批次',
  12. `remarks` text ,
  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 `restaurantId` (`restaurantId`) USING BTREE,
  20. KEY `batch` (`batch`) USING BTREE
  21. ) ENGINE = InnoDB AUTO_INCREMENT = 6197 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-restaurant'
  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-restaurant'
  22. )
  23. or (
  24. `lms_data_repository`.`enterprise_user_group_role_resource`.`appId` = '*'
  25. )
  26. )

_view01_user

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

_view02_user_app

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

view01_restaurant

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_restaurant` AS
  2. select
  3. `restaurant`.`id` AS `id`,
  4. `restaurant`.`idSequence` AS `idSequence`,
  5. `restaurant`.`restaurantId` AS `restaurantId`,
  6. `restaurant`.`restaurantName` AS `restaurantName`,
  7. `restaurant`.`tableQuantity` AS `tableQuantity`,
  8. `restaurant`.`tableSeat` AS `tableSeat`,
  9. `restaurant`.`startTableNumber` AS `startTableNumber`,
  10. `restaurant`.`remarks` AS `remarks`,
  11. `restaurant`.`operation` AS `operation`,
  12. `restaurant`.`operationByUserId` AS `operationByUserId`,
  13. `restaurant`.`operationByUser` AS `operationByUser`,
  14. `restaurant`.`operationAt` AS `operationAt`,
  15. (
  16. `restaurant`.`tableQuantity` * `restaurant`.`tableSeat`
  17. ) AS `seatTotal`
  18. from
  19. `restaurant`

view01_restaurant_student

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_restaurant_student` AS
  2. select
  3. `lms_restaurant`.`restaurant_student`.`id` AS `id`,
  4. `lms_restaurant`.`restaurant_student`.`studentId` AS `studentId`,
  5. `lms_restaurant`.`restaurant_student`.`idSequence` AS `idSequence`,
  6. `lms_restaurant`.`restaurant_student`.`restaurantId` AS `restaurantId`,
  7. `lms_restaurant`.`restaurant_student`.`tableNumber` AS `tableNumber`,
  8. `lms_restaurant`.`restaurant_student`.`seatNumber` AS `seatNumber`,
  9. `lms_restaurant`.`restaurant_student`.`batch` AS `batch`,
  10. `lms_restaurant`.`restaurant_student`.`remarks` AS `remarks`,
  11. `lms_restaurant`.`restaurant_student`.`operation` AS `operation`,
  12. `lms_restaurant`.`restaurant_student`.`operationByUserId` AS `operationByUserId`,
  13. `lms_restaurant`.`restaurant_student`.`operationByUser` AS `operationByUser`,
  14. `lms_restaurant`.`restaurant_student`.`operationAt` AS `operationAt`,
  15. `view02_student_basic_class`.`name` AS `name`,
  16. `view02_student_basic_class`.`className` AS `className`,
  17. `view02_student_basic_class`.`gender` AS `gender`,
  18. `view02_student_basic_class`.`studentStatus` AS `studentStatus`,
  19. `view02_student_basic_class`.`formTeacherId` AS `formTeacherId`,
  20. `view02_student_basic_class`.`formTeacherName` AS `formTeacherName`
  21. from
  22. (
  23. `lms_restaurant`.`restaurant_student`
  24. left join `lms_restaurant`.`view02_student_basic_class` on (
  25. (
  26. `lms_restaurant`.`restaurant_student`.`studentId` = `view02_student_basic_class`.`studentId`
  27. )
  28. )
  29. )

view02_restaurant_student

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view02_restaurant_student` AS
  2. select
  3. `lms_restaurant`.`restaurant_student`.`id` AS `id`,
  4. `lms_restaurant`.`restaurant_student`.`studentId` AS `studentId`,
  5. `lms_restaurant`.`restaurant_student`.`idSequence` AS `idSequence`,
  6. `lms_restaurant`.`restaurant_student`.`restaurantId` AS `restaurantId`,
  7. `lms_restaurant`.`restaurant_student`.`tableNumber` AS `tableNumber`,
  8. `lms_restaurant`.`restaurant_student`.`seatNumber` AS `seatNumber`,
  9. `lms_restaurant`.`restaurant_student`.`batch` AS `batch`,
  10. `lms_restaurant`.`restaurant_student`.`remarks` AS `remarks`,
  11. `lms_restaurant`.`restaurant_student`.`operation` AS `operation`,
  12. `lms_restaurant`.`restaurant_student`.`operationByUserId` AS `operationByUserId`,
  13. `lms_restaurant`.`restaurant_student`.`operationByUser` AS `operationByUser`,
  14. `lms_restaurant`.`restaurant_student`.`operationAt` AS `operationAt`,
  15. `view02_student_basic_class`.`name` AS `name`,
  16. `view02_student_basic_class`.`className` AS `className`,
  17. `view02_student_basic_class`.`gender` AS `gender`,
  18. `view02_student_basic_class`.`studentStatus` AS `studentStatus`,
  19. `lms_restaurant`.`restaurant`.`restaurantName` AS `restaurantName`,
  20. `view02_student_basic_class`.`classId` AS `classId`
  21. from
  22. (
  23. (
  24. `lms_restaurant`.`restaurant_student`
  25. left join `lms_restaurant`.`view02_student_basic_class` on (
  26. (
  27. `lms_restaurant`.`restaurant_student`.`studentId` = `view02_student_basic_class`.`studentId`
  28. )
  29. )
  30. )
  31. left join `lms_restaurant`.`restaurant` on (
  32. (
  33. `lms_restaurant`.`restaurant_student`.`restaurantId` = `lms_restaurant`.`restaurant`.`restaurantId`
  34. )
  35. )
  36. )

view02_restaurant_student_detail

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view02_restaurant_student_detail` AS
  2. select
  3. `lms_restaurant`.`restaurant_student`.`id` AS `id`,
  4. `lms_restaurant`.`restaurant_student`.`studentId` AS `studentId`,
  5. `lms_restaurant`.`restaurant_student`.`idSequence` AS `idSequence`,
  6. `lms_restaurant`.`restaurant_student`.`restaurantId` AS `restaurantId`,
  7. `lms_restaurant`.`restaurant_student`.`tableNumber` AS `tableNumber`,
  8. `lms_restaurant`.`restaurant_student`.`seatNumber` AS `seatNumber`,
  9. `lms_restaurant`.`restaurant_student`.`batch` AS `batch`,
  10. `lms_restaurant`.`restaurant_student`.`remarks` AS `remarks`,
  11. `lms_restaurant`.`restaurant_student`.`operation` AS `operation`,
  12. `lms_restaurant`.`restaurant_student`.`operationByUserId` AS `operationByUserId`,
  13. `lms_restaurant`.`restaurant_student`.`operationByUser` AS `operationByUser`,
  14. `lms_restaurant`.`restaurant_student`.`operationAt` AS `operationAt`,
  15. `view02_student_basic_class`.`name` AS `name`,
  16. `view02_student_basic_class`.`className` AS `className`,
  17. `view02_student_basic_class`.`gender` AS `gender`,
  18. `view02_student_basic_class`.`studentStatus` AS `studentStatus`,
  19. `lms_restaurant`.`restaurant`.`restaurantName` AS `restaurantName`
  20. from
  21. (
  22. (
  23. `lms_restaurant`.`restaurant_student`
  24. left join `lms_restaurant`.`view02_student_basic_class` on (
  25. (
  26. `lms_restaurant`.`restaurant_student`.`studentId` = `view02_student_basic_class`.`studentId`
  27. )
  28. )
  29. )
  30. left join `lms_restaurant`.`restaurant` on (
  31. (
  32. `lms_restaurant`.`restaurant_student`.`restaurantId` = `lms_restaurant`.`restaurant`.`restaurantId`
  33. )
  34. )
  35. )

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. `view01_student_basic_class`.`formTeacherId` AS `formTeacherId`,
  36. `view01_student_basic_class`.`formTeacherName` AS `formTeacherName`
  37. from
  38. `lms_student_admin`.`view01_student_basic_class`