数据结构

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 = 8 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 COMMENT 'page文件指定; 默认使用pageId.html',
  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 = 41 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 '数据',
  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 = 578 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 = 387 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. `expectedResult` text COMMENT '期望结果',
  9. `operation` varchar(255) DEFAULT NULL COMMENT '操作; jhInsert, jhUpdate, jhDelete jhRestore',
  10. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId; recordContent.operationByUserId',
  11. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名; recordContent.operationByUser',
  12. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; recordContent.operationAt; 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

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

reimbursement

  • 报销表
  1. CREATE TABLE `reimbursement` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `idSequence` int(11) DEFAULT NULL,
  4. `year` varchar(255) DEFAULT NULL COMMENT '年',
  5. `semester` varchar(255) DEFAULT NULL COMMENT '学期',
  6. `reimbursementId` varchar(255) DEFAULT NULL COMMENT '报销业务ID',
  7. `reimbursementType` varchar(255) DEFAULT NULL COMMENT '报销类别',
  8. `reimbursementReason` varchar(255) DEFAULT NULL COMMENT '报销事由',
  9. `reimbursementAmount` decimal(10, 2) DEFAULT NULL COMMENT '报销金额;报销项的总金额',
  10. `attachment` varchar(255) DEFAULT NULL COMMENT '附件;多个附件用,分隔',
  11. `remarks` varchar(255) DEFAULT NULL COMMENT '备注',
  12. `reimbursementItem` text COMMENT '报销项; [{itemName: '', amount: '', expenseDate: '', remark: ''}]',
  13. `workflow` text COMMENT '流程审核人员;{"1":"E41287U","2":"E41001K"}',
  14. `workflowStage` varchar(255) DEFAULT NULL COMMENT '审核阶段;对应workflow的key值: 1、2 等',
  15. `nextProcess` varchar(255) DEFAULT NULL COMMENT '下一流程',
  16. `latestUpdates` varchar(255) DEFAULT NULL COMMENT '最新操作描述',
  17. `publishStatus` varchar(255) DEFAULT 'publish' COMMENT '发布状态;draft、publish',
  18. `publishAt` varchar(255) DEFAULT NULL COMMENT '发布时间;publishStatus变更为"publish"的时间',
  19. `reviewStatus` varchar(255) DEFAULT '待审核' COMMENT '审核状态;待审核、审核中、审核通过、驳回',
  20. `transferStatus` varchar(255) DEFAULT '待转账' COMMENT '转账状态;待转账、已转账、异常',
  21. `reimbursementStatus` varchar(255) DEFAULT '处理中' COMMENT '报销状态;处理中、已完成、已撤销',
  22. `applicationUserId` varchar(255) DEFAULT NULL COMMENT '申请人Id',
  23. `applicationUser` varchar(255) DEFAULT NULL COMMENT '申请人用户名',
  24. `applicationAt` varchar(255) DEFAULT NULL COMMENT '申请时间',
  25. `notifyUserList` text COMMENT '完成后抄送人员;{"1":"E41287U","2":"E41001K"}',
  26. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  27. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  28. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  29. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  30. PRIMARY KEY (`id`) USING BTREE,
  31. KEY `reimbursementId` (`reimbursementId`) USING BTREE
  32. ) ENGINE = InnoDB AUTO_INCREMENT = 127 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '报销表'

reimbursement_confirm_history

  • 报销变更记录表
  1. CREATE TABLE `reimbursement_confirm_history` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `reimbursementId` varchar(255) DEFAULT NULL COMMENT '报销业务ID',
  4. `confirmUserId` varchar(255) DEFAULT NULL COMMENT '操作人id',
  5. `confirmUser` varchar(255) DEFAULT NULL COMMENT '操作人',
  6. `confirmAt` varchar(255) DEFAULT NULL COMMENT '操作时间',
  7. `confirmType` varchar(255) DEFAULT NULL COMMENT '操作类型;发起申请、审核、修改申请、转账',
  8. `result` varchar(255) DEFAULT NULL COMMENT '操作结果;审批(通过、驳回)、转账(成功、异常),发起申请/修改申请(成功)',
  9. `duration` varchar(255) DEFAULT NULL COMMENT '耗时(秒)',
  10. `description` varchar(255) DEFAULT NULL COMMENT '操作描述',
  11. `remarks` varchar(255) DEFAULT NULL COMMENT '备注',
  12. `attachment` varchar(255) DEFAULT NULL COMMENT '附件;多个附件用,分隔',
  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 `reimbursementId` (`reimbursementId`) USING BTREE
  19. ) ENGINE = InnoDB AUTO_INCREMENT = 134 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '报销变更记录表'

视图

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

employee

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

view01_class

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_class` AS
  2. select
  3. `lms_student_admin`.`class`.`id` AS `id`,
  4. `lms_student_admin`.`class`.`year` AS `year`,
  5. `lms_student_admin`.`class`.`academicYear` AS `academicYear`,
  6. `lms_student_admin`.`class`.`semester` AS `semester`,
  7. `lms_student_admin`.`class`.`segment` AS `segment`,
  8. `lms_student_admin`.`class`.`level` AS `level`,
  9. `lms_student_admin`.`class`.`number` AS `number`,
  10. `lms_student_admin`.`class`.`classId` AS `classId`,
  11. `lms_student_admin`.`class`.`className` AS `className`,
  12. `lms_student_admin`.`class`.`classNum` AS `classNum`,
  13. `lms_student_admin`.`class`.`formTeacherId` AS `formTeacherId`,
  14. `lms_student_admin`.`class`.`formTeacherName` AS `formTeacherName`,
  15. `lms_student_admin`.`class`.`formTeacherGender` AS `formTeacherGender`,
  16. `lms_student_admin`.`class`.`formTeacherContact` AS `formTeacherContact`,
  17. `lms_student_admin`.`class`.`learningTrack` AS `learningTrack`,
  18. `lms_student_admin`.`class`.`classType` AS `classType`,
  19. `lms_student_admin`.`class`.`classTagList` AS `classTagList`,
  20. `lms_student_admin`.`class`.`classCreatedBy` AS `classCreatedBy`,
  21. `lms_student_admin`.`class`.`remarks` AS `remarks`,
  22. `lms_student_admin`.`class`.`classStatus` AS `classStatus`,
  23. `lms_student_admin`.`class`.`operation` AS `operation`,
  24. `lms_student_admin`.`class`.`operationByUserId` AS `operationByUserId`,
  25. `lms_student_admin`.`class`.`operationByUser` AS `operationByUser`,
  26. `lms_student_admin`.`class`.`operationAt` AS `operationAt`
  27. from
  28. `lms_student_admin`.`class`
  29. union
  30. select
  31. `lms_student_admin`.`class_history`.`id` AS `id`,
  32. `lms_student_admin`.`class_history`.`year` AS `year`,
  33. `lms_student_admin`.`class_history`.`academicYear` AS `academicYear`,
  34. `lms_student_admin`.`class_history`.`semester` AS `semester`,
  35. `lms_student_admin`.`class_history`.`segment` AS `segment`,
  36. `lms_student_admin`.`class_history`.`level` AS `level`,
  37. `lms_student_admin`.`class_history`.`number` AS `number`,
  38. `lms_student_admin`.`class_history`.`classId` AS `classId`,
  39. `lms_student_admin`.`class_history`.`className` AS `className`,
  40. `lms_student_admin`.`class_history`.`classNum` AS `classNum`,
  41. `lms_student_admin`.`class_history`.`formTeacherId` AS `formTeacherId`,
  42. `lms_student_admin`.`class_history`.`formTeacherName` AS `formTeacherName`,
  43. `lms_student_admin`.`class_history`.`formTeacherGender` AS `formTeacherGender`,
  44. `lms_student_admin`.`class_history`.`formTeacherContact` AS `formTeacherContact`,
  45. `lms_student_admin`.`class_history`.`learningTrack` AS `learningTrack`,
  46. `lms_student_admin`.`class_history`.`classType` AS `classType`,
  47. `lms_student_admin`.`class_history`.`classTagList` AS `classTagList`,
  48. `lms_student_admin`.`class_history`.`classCreatedBy` AS `classCreatedBy`,
  49. `lms_student_admin`.`class_history`.`remarks` AS `remarks`,
  50. `lms_student_admin`.`class_history`.`classStatus` AS `classStatus`,
  51. `lms_student_admin`.`class_history`.`operation` AS `operation`,
  52. `lms_student_admin`.`class_history`.`operationByUserId` AS `operationByUserId`,
  53. `lms_student_admin`.`class_history`.`operationByUser` AS `operationByUser`,
  54. `lms_student_admin`.`class_history`.`operationAt` AS `operationAt`
  55. from
  56. `lms_student_admin`.`class_history`

view01_member_org_role

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_member_org_role` AS
  2. select
  3. `lms_hr`.`member_org_role`.`id` AS `id`,
  4. `lms_hr`.`member_org_role`.`orgId` AS `orgId`,
  5. `lms_hr`.`member_org_role`.`memberId` AS `memberId`,
  6. `lms_hr`.`member_org_role`.`roleId` AS `roleId`,
  7. `lms_hr`.`member_org_role`.`remark` AS `remark`,
  8. `lms_hr`.`org`.`orgParentId` AS `orgParentId`,
  9. `lms_hr`.`org`.`orgName` AS `orgName`,
  10. `lms_hr`.`employee`.`employeeId` AS `employeeId`,
  11. `lms_hr`.`employee`.`employeeName` AS `employeeName`,
  12. `lms_hr`.`employee`.`idSequence` AS `idSequence`,
  13. `lms_hr`.`employee`.`sex` AS `sex`,
  14. `lms_hr`.`employee`.`age` AS `age`,
  15. `lms_hr`.`employee`.`contactNumber` AS `contactNumber`,
  16. `lms_hr`.`employee`.`emergencyContactNumber` AS `emergencyContactNumber`,
  17. `lms_hr`.`employee`.`post` AS `post`,
  18. `lms_hr`.`employee`.`politicalBackground` AS `politicalBackground`,
  19. `lms_hr`.`employee`.`icNumber` AS `icNumber`,
  20. `lms_hr`.`employee`.`dateOfBirth` AS `dateOfBirth`,
  21. `lms_hr`.`employee`.`institution` AS `institution`,
  22. `lms_hr`.`employee`.`major` AS `major`,
  23. `lms_hr`.`employee`.`highestEducation` AS `highestEducation`,
  24. `lms_hr`.`employee`.`teacherQualification` AS `teacherQualification`,
  25. `lms_hr`.`employee`.`teacherQualificationLeaver` AS `teacherQualificationLeaver`,
  26. `lms_hr`.`employee`.`teacherQualificationSubject` AS `teacherQualificationSubject`,
  27. `lms_hr`.`employee`.`teacherCertificationNumber` AS `teacherCertificationNumber`,
  28. `lms_hr`.`employee`.`teachingLevel` AS `teachingLevel`,
  29. `lms_hr`.`employee`.`teachingSubject` AS `teachingSubject`,
  30. `lms_hr`.`employee`.`residentialAddress` AS `residentialAddress`,
  31. `lms_hr`.`employee`.`province` AS `province`,
  32. `lms_hr`.`employee`.`city` AS `city`,
  33. `lms_hr`.`employee`.`county` AS `county`,
  34. `lms_hr`.`employee`.`dateOfEntry` AS `dateOfEntry`,
  35. `lms_hr`.`employee`.`dateOfContractExpiration` AS `dateOfContractExpiration`,
  36. `lms_hr`.`employee`.`cardNumber` AS `cardNumber`,
  37. `lms_hr`.`employee`.`licensePlateNumber` AS `licensePlateNumber`,
  38. `lms_hr`.`employee`.`employmentForms` AS `employmentForms`,
  39. `lms_hr`.`employee`.`entryStatus` AS `entryStatus`,
  40. `lms_hr`.`employee`.`status` AS `status`,
  41. `lms_hr`.`employee`.`remarks` AS `remarks`
  42. from
  43. (
  44. (
  45. `lms_hr`.`member_org_role`
  46. left join `lms_hr`.`org` on (
  47. (
  48. `lms_hr`.`member_org_role`.`orgId` = `lms_hr`.`org`.`orgId`
  49. )
  50. )
  51. )
  52. left join `lms_hr`.`employee` on (
  53. (
  54. `lms_hr`.`member_org_role`.`memberId` = `lms_hr`.`employee`.`employeeId`
  55. )
  56. )
  57. )

view01_reimbursement

  1. CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_reimbursement` AS
  2. select
  3. `reimbursement`.`id` AS `id`,
  4. `reimbursement`.`idSequence` AS `idSequence`,
  5. `reimbursement`.`year` AS `year`,
  6. `reimbursement`.`semester` AS `semester`,
  7. `reimbursement`.`reimbursementId` AS `reimbursementId`,
  8. `reimbursement`.`reimbursementType` AS `reimbursementType`,
  9. `reimbursement`.`reimbursementReason` AS `reimbursementReason`,
  10. `reimbursement`.`reimbursementAmount` AS `reimbursementAmount`,
  11. `reimbursement`.`attachment` AS `attachment`,
  12. `reimbursement`.`remarks` AS `remarks`,
  13. `reimbursement`.`reimbursementItem` AS `reimbursementItem`,
  14. `reimbursement`.`workflow` AS `workflow`,
  15. `reimbursement`.`workflowStage` AS `workflowStage`,
  16. `reimbursement`.`nextProcess` AS `nextProcess`,
  17. `reimbursement`.`latestUpdates` AS `latestUpdates`,
  18. `reimbursement`.`publishStatus` AS `publishStatus`,
  19. `reimbursement`.`publishAt` AS `publishAt`,
  20. `reimbursement`.`reviewStatus` AS `reviewStatus`,
  21. `reimbursement`.`transferStatus` AS `transferStatus`,
  22. `reimbursement`.`reimbursementStatus` AS `reimbursementStatus`,
  23. `reimbursement`.`applicationUserId` AS `applicationUserId`,
  24. `reimbursement`.`applicationUser` AS `applicationUser`,
  25. `reimbursement`.`applicationAt` AS `applicationAt`,
  26. `reimbursement`.`notifyUserList` AS `notifyUserList`,
  27. `reimbursement`.`operation` AS `operation`,
  28. `reimbursement`.`operationByUserId` AS `operationByUserId`,
  29. `reimbursement`.`operationByUser` AS `operationByUser`,
  30. `reimbursement`.`operationAt` AS `operationAt`
  31. from
  32. `reimbursement`