数据结构
12114表总览
普通表
_cache
- 缓存表
CREATE TABLE `_cache` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` varchar(255) NOT NULL COMMENT '用户Id',
`content` longtext COMMENT '缓存数据',
`recordStatus` varchar(255) DEFAULT 'active',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '缓存表'
_constant
- 常量表;
CREATE TABLE `_constant` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`constantKey` varchar(255) DEFAULT NULL,
`constantType` varchar(255) DEFAULT NULL COMMENT '常量类型; object, array',
`desc` varchar(255) DEFAULT NULL COMMENT '描述',
`constantValue` text COMMENT '常量内容; object, array',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 66 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表;'
_constant_ui
- 常量表;
CREATE TABLE `_constant_ui` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`constantKey` varchar(255) DEFAULT NULL,
`constantType` varchar(255) DEFAULT NULL COMMENT '常量类型; object, array',
`pageId` varchar(255) DEFAULT 'all' COMMENT '页面id',
`desc` varchar(255) DEFAULT NULL COMMENT '描述',
`en` text COMMENT '常量内容; object, array',
`zh` text COMMENT '常量内容; object, array',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `pageId_constantKey_unique` (`constantKey`, `pageId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表;'
_page
- 页面表; 软删除未启用;
CREATE TABLE `_page` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pageId` varchar(255) DEFAULT NULL COMMENT 'pageId',
`pageName` varchar(255) DEFAULT NULL COMMENT 'page name',
`pageFile` varchar(255) DEFAULT NULL,
`pageType` varchar(255) DEFAULT NULL COMMENT '页面类型; showInMenu, dynamicInMenu',
`sort` varchar(255) DEFAULT NULL,
`pageHook` text COMMENT '{\n "beforeHook":[\n {"field": "doc", "service": "doc", "serviceFunc": "getDoc"}\n ]\n}',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 85 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '页面表; 软删除未启用;'
_record_history
- 数据历史表
CREATE TABLE `_record_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`table` varchar(255) DEFAULT NULL COMMENT '表',
`recordId` int(11) DEFAULT NULL COMMENT '数据在table中的主键id; recordContent.id',
`recordContent` longtext COMMENT '数据JSON',
`packageContent` longtext COMMENT '当时请求的 package JSON',
`operation` varchar(255) DEFAULT NULL COMMENT '操作; jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId; recordContent.operationByUserId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名; recordContent.operationByUser',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; recordContent.operationAt; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_record_id` (`recordId`) USING BTREE,
KEY `index_table_action` (`table`, `operation`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '数据历史表'
_resource
- 请求资源表; 软删除未启用; resourceId=
${appId}.${pageId}.${actionId}
CREATE TABLE `_resource` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`accessControlTable` varchar(255) DEFAULT NULL COMMENT '数据规则控制表',
`resourceHook` text COMMENT '{ "before": [{"service": "xx", "serviceFunction": "xxx"}], "after": [] }',
`pageId` varchar(255) DEFAULT NULL COMMENT 'page id; E.g: index',
`actionId` varchar(255) DEFAULT NULL COMMENT 'action id; E.g: selectXXXByXXX',
`desc` varchar(255) DEFAULT NULL COMMENT '描述',
`resourceType` varchar(255) DEFAULT NULL COMMENT 'resource 类型; E.g: auth service sql',
`appDataSchema` text COMMENT 'appData 参数校验',
`resourceData` text COMMENT 'resource 数据; { "service": "auth", "serviceFunction": "passwordLogin" } or { "table": "${tableName}", "action": "select", "whereCondition": ".where(function() {this.whereNot( { recordStatus: \\"active\\" })})" }',
`requestDemo` text COMMENT '请求Demo',
`responseDemo` text COMMENT '响应Demo',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 533 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '请求资源表; 软删除未启用; resourceId=`${appId}.${pageId}.${actionId}`'
_resource_request_log
- 文件表; 软删除未启用;
CREATE TABLE `_resource_request_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`resourceId` varchar(255) DEFAULT NULL COMMENT 'resource id;',
`packageId` varchar(255) DEFAULT NULL COMMENT 'resource package id',
`userIp` varchar(255) DEFAULT NULL COMMENT '用户ip;',
`userAgent` varchar(255) DEFAULT NULL COMMENT '设备信息',
`userId` varchar(255) DEFAULT NULL COMMENT '用户ID',
`deviceId` varchar(255) DEFAULT NULL COMMENT '设备id',
`userIpRegion` varchar(255) DEFAULT NULL COMMENT '用户Ip区域',
`executeSql` varchar(255) DEFAULT NULL COMMENT '执行的sql',
`requestBody` mediumtext COMMENT '请求body',
`responseBody` mediumtext COMMENT '响应body',
`responseStatus` varchar(255) DEFAULT NULL COMMENT '执行的结果; success, fail',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE,
KEY `resourceId_index` (`resourceId`) USING BTREE,
KEY `packageId_index` (`packageId`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '文件表; 软删除未启用;'
_test_case
- 测试用例表
CREATE TABLE `_test_case` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pageId` varchar(255) DEFAULT NULL COMMENT '页面Id',
`testId` varchar(255) DEFAULT NULL COMMENT '测试用例Id; 10000 ++',
`testName` varchar(255) DEFAULT NULL COMMENT '测试用例名',
`uiActionIdList` varchar(255) DEFAULT NULL COMMENT 'uiAction列表; 一个测试用例对应多个uiActionId',
`testOpeartion` text COMMENT '测试用例步骤;',
`operation` varchar(255) DEFAULT NULL COMMENT '操作; jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId; recordContent.operationByUserId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名; recordContent.operationByUser',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; recordContent.operationAt; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '测试用例表'
_ui
- ui 施工方案
CREATE TABLE `_ui` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pageId` varchar(255) DEFAULT NULL COMMENT 'page id; E.g: index',
`uiActionType` varchar(255) DEFAULT NULL COMMENT 'ui 动作类型,如:fetchData, postData, changeUi',
`uiActionId` varchar(255) DEFAULT NULL COMMENT 'action id; E.g: selectXXXByXXX',
`desc` varchar(255) DEFAULT NULL COMMENT '描述',
`uiActionConfig` text COMMENT 'ui 动作数据',
`appDataSchema` text COMMENT 'ui 校验数据',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 243 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = 'ui 施工方案'
_user
- 用户表;
CREATE TABLE `_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idSequence` varchar(255) DEFAULT NULL,
`userId` varchar(255) DEFAULT NULL COMMENT '用户id',
`username` varchar(255) DEFAULT NULL COMMENT '用户名',
`userAvatar` varchar(255) DEFAULT NULL COMMENT '用户头像',
`contactNumber` varchar(255) DEFAULT NULL COMMENT '联系方式',
`gender` varchar(255) DEFAULT 'male' COMMENT '性别; male, female',
`birthday` varchar(255) DEFAULT NULL COMMENT '生日E.g: 2021-05-28T10:24:54+08:00 ',
`signature` varchar(255) DEFAULT NULL COMMENT '签名',
`email` varchar(255) DEFAULT NULL COMMENT '邮箱',
`clearTextPassword` varchar(255) DEFAULT NULL COMMENT '初始明文密码',
`password` varchar(255) DEFAULT NULL COMMENT 'password',
`md5Salt` varchar(255) DEFAULT NULL COMMENT 'md5Salt',
`userType` varchar(255) DEFAULT 'common' COMMENT '用户类型; common, xiaochengxu',
`userStatus` varchar(255) DEFAULT 'active' COMMENT '用户类型; active, banned',
`config` mediumtext COMMENT '置顶信息',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `userId_unique` (`userId`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户表;'
_user_session
- 用户session表; deviceId 维度;软删除未启用;
CREATE TABLE `_user_session` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` varchar(255) DEFAULT NULL COMMENT '用户id',
`userIp` varchar(255) DEFAULT NULL COMMENT '用户ip',
`userAgent` varchar(255) DEFAULT NULL COMMENT '请求的 agent',
`deviceId` varchar(255) DEFAULT NULL COMMENT '设备id',
`deviceType` varchar(255) DEFAULT NULL COMMENT '设备类型',
`userIpRegion` varchar(255) DEFAULT NULL,
`socketStatus` varchar(255) NOT NULL DEFAULT 'offline' COMMENT 'socket状态',
`authToken` varchar(2048) DEFAULT NULL COMMENT 'auth token',
`refreshToken` varchar(2048) DEFAULT NULL COMMENT 'refresh token',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE,
KEY `userId_index` (`userId`) USING BTREE,
KEY `userId_deviceId_unique` (`userId`, `deviceId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户session表; deviceId 维度;软删除未启用;'
article
CREATE TABLE `article` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`articleId` bigint(20) DEFAULT NULL COMMENT '文章id, 10000 ++',
`categoryId` varchar(255) DEFAULT NULL COMMENT '分类id',
`articleGroupName` varchar(255) DEFAULT '' COMMENT '文章所属分组名',
`articleTagList` text CHARACTER SET utf8mb4 COMMENT '标签; 用, 拼接',
`articleDescription` varchar(255) DEFAULT NULL COMMENT '文章描述',
`articlePublishStatus` varchar(255) DEFAULT '' COMMENT '文章类型(状态):public, login, draft, deleted',
`articlePublishTime` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '文章发布时间',
`articleTitle` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '标题',
`articleCoverImage` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '封面',
`articleContent` longtext CHARACTER SET utf8mb4 COMMENT '编辑的内容',
`articleContentForSeo` longtext CHARACTER SET utf8mb4 COMMENT 'HTML 用于渲染',
`articleAssignmentList` text COMMENT '文章作业 [{ }]',
`articleAssignmentListWithAnswer` text COMMENT '文章作业答案 [{ }]',
`articleAudioUrl` varchar(1023) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '默认音频URL唯一的',
`articleVideoUrl` varchar(1023) DEFAULT '' COMMENT '默认视频URL',
`articleCreateTime` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '创建时间',
`articleCreateUserId` varchar(255) DEFAULT '' COMMENT '创建者用户ID',
`articleCreateUsername` varchar(255) DEFAULT '' COMMENT '创建者用户名',
`articleUpdateTime` varchar(255) DEFAULT '' COMMENT '更新时间',
`articleUpdateUserId` varchar(255) DEFAULT '' COMMENT '更新者用户ID',
`articleUpdateUsername` varchar(255) DEFAULT '' COMMENT '更新者用户名',
`operation` varchar(255) DEFAULT '' COMMENT '操作: insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT '' COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT '' COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT '' COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `article_unique` (`articleId`) USING BTREE,
KEY `categoryId_index` (`categoryId`) USING BTREE,
KEY `articlePublishTime` (`articlePublishTime`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 51270 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
article_bak
CREATE TABLE `article_bak` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`articleId` bigint(20) DEFAULT NULL COMMENT '文章id, 10000 ++',
`categoryId` varchar(255) DEFAULT NULL COMMENT '分类id',
`articleGroupName` varchar(255) DEFAULT '' COMMENT '文章所属分组名',
`articleTagList` text CHARACTER SET utf8mb4 COMMENT '标签; 用, 拼接',
`articleDescription` varchar(255) DEFAULT NULL COMMENT '文章描述',
`articlePublishStatus` varchar(255) DEFAULT '' COMMENT '文章类型(状态):public, login, draft, deleted',
`articlePublishTime` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '文章发布时间',
`articleTitle` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '标题',
`articleCoverImage` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '封面',
`articleContent` longtext CHARACTER SET utf8mb4 COMMENT '编辑的内容',
`articleContentForSeo` longtext CHARACTER SET utf8mb4 COMMENT 'HTML 用于渲染',
`articleAssignmentList` text COMMENT '文章作业 [{ }]',
`articleAssignmentListWithAnswer` text COMMENT '文章作业答案 [{ }]',
`articleAudioUrl` varchar(1023) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '默认音频URL唯一的',
`articleVideoUrl` varchar(1023) DEFAULT '' COMMENT '默认视频URL',
`articleCreateTime` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '创建时间',
`articleCreateUserId` varchar(255) DEFAULT '' COMMENT '创建者用户ID',
`articleCreateUsername` varchar(255) DEFAULT '' COMMENT '创建者用户名',
`articleUpdateTime` varchar(255) DEFAULT '' COMMENT '更新时间',
`articleUpdateUserId` varchar(255) DEFAULT '' COMMENT '更新者用户ID',
`articleUpdateUsername` varchar(255) DEFAULT '' COMMENT '更新者用户名',
`operation` varchar(255) DEFAULT '' COMMENT '操作: insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT '' COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT '' COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT '' COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00',
`articleConfig` varchar(500) DEFAULT NULL COMMENT '命定页面配置',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `article_unique` (`articleId`) USING BTREE,
KEY `categoryId_index` (`categoryId`) USING BTREE,
KEY `articlePublishTime` (`articlePublishTime`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4752 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
article_history
CREATE TABLE `article_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`articleId` bigint(20) DEFAULT NULL COMMENT '文章id, 10000 ++',
`categoryId` varchar(255) DEFAULT NULL COMMENT '分类id',
`articleGroupName` varchar(255) DEFAULT NULL COMMENT '文章所属分组名',
`articleTagList` varchar(255) DEFAULT NULL COMMENT '标签; 用, 拼接',
`articleDescription` varchar(1023) DEFAULT NULL COMMENT '文章描述',
`articlePublishStatus` varchar(255) DEFAULT 'login' COMMENT '文章类型(状态):public, login, draft, deleted',
`articlePublishTime` varchar(255) DEFAULT NULL COMMENT '文章发布时间',
`articleTitle` varchar(255) DEFAULT NULL COMMENT '标题',
`articleCoverImage` varchar(255) DEFAULT NULL COMMENT '封面',
`articleContent` longtext COMMENT '编辑的内容',
`articleContentForSeo` longtext COMMENT 'HTML 用于渲染',
`articleAssignmentList` text COMMENT '文章作业 [{ }]',
`articleAssignmentListWithAnswer` text COMMENT '文章作业答案 [{ }]',
`articleAudioUrl` varchar(255) DEFAULT NULL COMMENT '默认音频URL唯一的',
`articleVideoUrl` varchar(255) DEFAULT NULL COMMENT '默认视频URL',
`articleCreateTime` varchar(255) DEFAULT NULL COMMENT '创建时间',
`articleCreateUserId` varchar(255) DEFAULT NULL COMMENT '创建者用户ID',
`articleCreateUsername` varchar(255) DEFAULT NULL COMMENT '创建者用户名',
`articleUpdateTime` varchar(255) DEFAULT NULL COMMENT '更新时间',
`articleUpdateUserId` varchar(255) DEFAULT NULL COMMENT '更新者用户ID',
`articleUpdateUsername` varchar(255) DEFAULT NULL COMMENT '更新者用户名',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作: insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
calendar
CREATE TABLE `calendar` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
`calendarId` varchar(255) DEFAULT NULL COMMENT '日历id',
`calendarName` varchar(255) DEFAULT NULL COMMENT '日历name',
`calendarType` varchar(255) DEFAULT NULL COMMENT '日历类型',
`startDay` varchar(255) DEFAULT NULL COMMENT '开始日期',
`endDay` varchar(255) DEFAULT NULL COMMENT '结束日期',
`events` text COMMENT '事件',
`operation` varchar(255) DEFAULT NULL COMMENT '操作: insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
category
CREATE TABLE `category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`categoryId` bigint(255) DEFAULT NULL COMMENT '分类id',
`categoryName` varchar(255) CHARACTER SET utf8mb4 DEFAULT '',
`categoryArticleIgnoreTiltle` varchar(255) DEFAULT NULL,
`categoryIntro` text CHARACTER SET utf8mb4 ,
`categoryGroup` varchar(255) DEFAULT NULL,
`categoryGroupSort` varchar(255) DEFAULT NULL,
`categoryPublishStatus` varchar(255) DEFAULT '',
`categoryCreateTime` varchar(255) DEFAULT '',
`categoryCreateUserId` varchar(255) DEFAULT '',
`categoryCreateUsername` varchar(255) DEFAULT '',
`categoryUpdateTime` varchar(255) DEFAULT '',
`categoryUpdateUserId` varchar(255) DEFAULT '',
`categoryUpdateUsername` varchar(255) DEFAULT '',
`operation` varchar(255) DEFAULT '',
`operationByUserId` varchar(255) DEFAULT '',
`operationByUser` varchar(255) DEFAULT '',
`operationAt` varchar(255) DEFAULT '',
`categoryMark` varchar(255) DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`id`) USING BTREE,
KEY `categoryId_unique` (`categoryId`) USING BTREE,
KEY `categoryName_unique` (`categoryName`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 195 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin
web_constant_ui
- 常量表;
CREATE TABLE `web_constant_ui` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`constantKey` varchar(255) DEFAULT NULL,
`constantType` varchar(255) DEFAULT NULL COMMENT '常量类型; object, array',
`pageId` varchar(255) DEFAULT 'all' COMMENT '页面id',
`desc` varchar(255) DEFAULT NULL COMMENT '描述',
`en` text COMMENT '常量内容; object, array',
`zh` text COMMENT '常量内容; object, array',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `pageId_constantKey_unique` (`constantKey`, `pageId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 25 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表;'
xf_page
- 旋风定制页面表
CREATE TABLE `xf_page` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`xfPageId` varchar(255) DEFAULT NULL COMMENT 'xf pageId',
`categoryId` varchar(255) DEFAULT NULL COMMENT '分类',
`routeAlias` varchar(255) DEFAULT NULL,
`xfPageTagList` text COMMENT '标签; 用, 拼接',
`xfPagePublishStatus` varchar(255) DEFAULT '' COMMENT '文章类型(状态):public, login, draft, deleted',
`xfPagePublishTime` varchar(255) DEFAULT NULL COMMENT '文章发布时间',
`xfPageTitle` varchar(255) DEFAULT NULL COMMENT '标题',
`xfPageCoverImage` varchar(255) DEFAULT NULL COMMENT '封面',
`xfPageContent` longtext COMMENT '编辑的内容',
`xfPageContentForSeo` longtext COMMENT 'HTML 用于渲染',
`xfPageAudioUrl` varchar(1023) DEFAULT NULL COMMENT '默认音频URL唯一的',
`xfPageVideoUrl` varchar(1023) DEFAULT '' COMMENT '默认视频URL',
`xfPageDescription` varchar(255) DEFAULT NULL COMMENT '描述',
`xfPageCreateTime` varchar(255) DEFAULT NULL COMMENT '创建时间',
`xfPageCreateUserId` varchar(255) DEFAULT '' COMMENT '创建者用户ID',
`xfPageCreateUsername` varchar(255) DEFAULT '' COMMENT '创建者用户名',
`xfPageUpdateTime` varchar(255) DEFAULT '' COMMENT '更新时间',
`xfPageUpdateUserId` varchar(255) DEFAULT '' COMMENT '更新者用户ID',
`xfPageUpdateUsername` varchar(255) DEFAULT '' COMMENT '更新者用户名',
`xfPageConfig` mediumtext COMMENT '配置',
`template` varchar(255) DEFAULT NULL COMMENT '模板',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `xf_page_xfPageId_uindex` (`xfPageId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 124 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '旋风定制页面表'
xf_page_history
- 旋风定制页面历史表
CREATE TABLE `xf_page_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`xfPageId` varchar(255) DEFAULT NULL COMMENT 'xf pageId',
`categoryId` varchar(255) DEFAULT NULL,
`routeAlias` varchar(255) DEFAULT NULL,
`xfPageTagList` text COMMENT '标签; 用, 拼接',
`xfPagePublishStatus` varchar(255) DEFAULT '' COMMENT '文章类型(状态):public, login, draft, deleted',
`xfPagePublishTime` varchar(255) DEFAULT NULL COMMENT '文章发布时间',
`xfPageTitle` varchar(255) DEFAULT NULL COMMENT '标题',
`xfPageDescription` varchar(255) DEFAULT NULL COMMENT '描述',
`xfPageCoverImage` varchar(255) DEFAULT NULL COMMENT '封面',
`xfPageContent` longtext COMMENT '编辑的内容',
`xfPageContentForSeo` longtext COMMENT 'HTML 用于渲染',
`xfPageAudioUrl` varchar(1023) DEFAULT NULL COMMENT '默认音频URL唯一的',
`xfPageVideoUrl` varchar(1023) DEFAULT '' COMMENT '默认视频URL',
`xfPageCreateTime` varchar(255) DEFAULT NULL COMMENT '创建时间',
`xfPageCreateUserId` varchar(255) DEFAULT '' COMMENT '创建者用户ID',
`xfPageCreateUsername` varchar(255) DEFAULT '' COMMENT '创建者用户名',
`xfPageUpdateTime` varchar(255) DEFAULT '' COMMENT '更新时间',
`xfPageUpdateUserId` varchar(255) DEFAULT '' COMMENT '更新者用户ID',
`xfPageUpdateUsername` varchar(255) DEFAULT '' COMMENT '更新者用户名',
`xfPageConfig` text COMMENT '配置',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
`template` varchar(255) CHARACTER SET armscii8 DEFAULT NULL COMMENT '模板',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1050 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '旋风定制页面历史表'
xf_page_new
- 旋风定制页面表
CREATE TABLE `xf_page_new` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`xfPageId` varchar(255) DEFAULT NULL COMMENT 'xf pageId',
`categoryId` varchar(255) DEFAULT NULL COMMENT '分类',
`xfPageTagList` text COMMENT '标签; 用, 拼接',
`xfPagePublishStatus` varchar(255) DEFAULT '' COMMENT '文章类型(状态):public, login, draft, deleted',
`xfPagePublishTime` varchar(255) DEFAULT NULL COMMENT '文章发布时间',
`xfPageTitle` varchar(255) DEFAULT NULL COMMENT '标题',
`xfPageCoverImage` varchar(255) DEFAULT NULL COMMENT '封面',
`xfPageContent` longtext COMMENT '编辑的内容',
`xfPageContentForSeo` longtext COMMENT 'HTML 用于渲染',
`xfPageAudioUrl` varchar(1023) DEFAULT NULL COMMENT '默认音频URL唯一的',
`xfPageVideoUrl` varchar(1023) DEFAULT '' COMMENT '默认视频URL',
`xfPageCreateTime` varchar(255) DEFAULT NULL COMMENT '创建时间',
`xfPageCreateUserId` varchar(255) DEFAULT '' COMMENT '创建者用户ID',
`xfPageCreateUsername` varchar(255) DEFAULT '' COMMENT '创建者用户名',
`xfPageUpdateTime` varchar(255) DEFAULT '' COMMENT '更新时间',
`xfPageUpdateUserId` varchar(255) DEFAULT '' COMMENT '更新者用户ID',
`xfPageUpdateUsername` varchar(255) DEFAULT '' COMMENT '更新者用户名',
`xfPageConfig` varchar(255) DEFAULT NULL COMMENT '配置',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `xf_page_xfPageId_uindex` (`xfPageId`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '旋风定制页面表'
视图
_directory_user_session
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_directory_user_session` AS
select
`lms_data_repository`.`enterprise_directory_user_session`.`id` AS `id`,
`lms_data_repository`.`enterprise_directory_user_session`.`userId` AS `userId`,
`lms_data_repository`.`enterprise_directory_user_session`.`userIp` AS `userIp`,
`lms_data_repository`.`enterprise_directory_user_session`.`userIpRegion` AS `userIpRegion`,
`lms_data_repository`.`enterprise_directory_user_session`.`userAgent` AS `userAgent`,
`lms_data_repository`.`enterprise_directory_user_session`.`deviceId` AS `deviceId`,
`lms_data_repository`.`enterprise_directory_user_session`.`deviceType` AS `deviceType`,
`lms_data_repository`.`enterprise_directory_user_session`.`socketStatus` AS `socketStatus`,
`lms_data_repository`.`enterprise_directory_user_session`.`authToken` AS `authToken`,
`lms_data_repository`.`enterprise_directory_user_session`.`operation` AS `operation`,
`lms_data_repository`.`enterprise_directory_user_session`.`operationByUserId` AS `operationByUserId`,
`lms_data_repository`.`enterprise_directory_user_session`.`operationByUser` AS `operationByUser`,
`lms_data_repository`.`enterprise_directory_user_session`.`operationAt` AS `operationAt`
from
`lms_data_repository`.`enterprise_directory_user_session`
_group
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_group` AS
select
`lms_data_repository`.`enterprise_group`.`id` AS `id`,
`lms_data_repository`.`enterprise_group`.`groupId` AS `groupId`,
`lms_data_repository`.`enterprise_group`.`groupLastId` AS `groupLastId`,
`lms_data_repository`.`enterprise_group`.`groupPath` AS `groupPath`,
`lms_data_repository`.`enterprise_group`.`groupName` AS `groupName`,
`lms_data_repository`.`enterprise_group`.`groupDeptName` AS `groupDeptName`,
`lms_data_repository`.`enterprise_group`.`groupAllName` AS `groupAllName`,
`lms_data_repository`.`enterprise_group`.`principalId` AS `principalId`,
`lms_data_repository`.`enterprise_group`.`headId` AS `headId`,
`lms_data_repository`.`enterprise_group`.`leadId` AS `leadId`,
`lms_data_repository`.`enterprise_group`.`groupDesc` AS `groupDesc`,
`lms_data_repository`.`enterprise_group`.`operation` AS `operation`,
`lms_data_repository`.`enterprise_group`.`operationByUserId` AS `operationByUserId`,
`lms_data_repository`.`enterprise_group`.`operationByUser` AS `operationByUser`,
`lms_data_repository`.`enterprise_group`.`operationAt` AS `operationAt`
from
`lms_data_repository`.`enterprise_group`
_role
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_role` AS
select
`lms_data_repository`.`enterprise_role`.`id` AS `id`,
`lms_data_repository`.`enterprise_role`.`roleId` AS `roleId`,
`lms_data_repository`.`enterprise_role`.`roleName` AS `roleName`,
`lms_data_repository`.`enterprise_role`.`roleType` AS `roleType`,
`lms_data_repository`.`enterprise_role`.`roleDesc` AS `roleDesc`,
`lms_data_repository`.`enterprise_role`.`operation` AS `operation`,
`lms_data_repository`.`enterprise_role`.`operationByUserId` AS `operationByUserId`,
`lms_data_repository`.`enterprise_role`.`operationByUser` AS `operationByUser`,
`lms_data_repository`.`enterprise_role`.`operationAt` AS `operationAt`
from
`lms_data_repository`.`enterprise_role`
_user_group_role
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_user_group_role` AS
select
`lms_data_repository`.`enterprise_user_group_role`.`id` AS `id`,
`lms_data_repository`.`enterprise_user_group_role`.`userId` AS `userId`,
`lms_data_repository`.`enterprise_user_group_role`.`groupId` AS `groupId`,
`lms_data_repository`.`enterprise_user_group_role`.`roleId` AS `roleId`,
`lms_data_repository`.`enterprise_user_group_role`.`roleDeadline` AS `roleDeadline`,
`lms_data_repository`.`enterprise_user_group_role`.`operation` AS `operation`,
`lms_data_repository`.`enterprise_user_group_role`.`operationByUserId` AS `operationByUserId`,
`lms_data_repository`.`enterprise_user_group_role`.`operationByUser` AS `operationByUser`,
`lms_data_repository`.`enterprise_user_group_role`.`operationAt` AS `operationAt`
from
`lms_data_repository`.`enterprise_user_group_role`
_user_group_role_page
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_user_group_role_page` AS
select
`lms_data_repository`.`enterprise_user_group_role_page`.`id` AS `id`,
`lms_data_repository`.`enterprise_user_group_role_page`.`appId` AS `appId`,
`lms_data_repository`.`enterprise_user_group_role_page`.`user` AS `user`,
`lms_data_repository`.`enterprise_user_group_role_page`.`group` AS `group`,
`lms_data_repository`.`enterprise_user_group_role_page`.`role` AS `role`,
`lms_data_repository`.`enterprise_user_group_role_page`.`page` AS `page`,
`lms_data_repository`.`enterprise_user_group_role_page`.`allowOrDeny` AS `allowOrDeny`,
`lms_data_repository`.`enterprise_user_group_role_page`.`desc` AS `desc`,
`lms_data_repository`.`enterprise_user_group_role_page`.`source` AS `source`,
`lms_data_repository`.`enterprise_user_group_role_page`.`operation` AS `operation`,
`lms_data_repository`.`enterprise_user_group_role_page`.`operationByUserId` AS `operationByUserId`,
`lms_data_repository`.`enterprise_user_group_role_page`.`operationByUser` AS `operationByUser`,
`lms_data_repository`.`enterprise_user_group_role_page`.`operationAt` AS `operationAt`
from
`lms_data_repository`.`enterprise_user_group_role_page`
where
(
(
`lms_data_repository`.`enterprise_user_group_role_page`.`appId` = 'lms-seo-admin'
)
or (
`lms_data_repository`.`enterprise_user_group_role_page`.`appId` = '*'
)
)
_user_group_role_resource
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_user_group_role_resource` AS
select
`lms_data_repository`.`enterprise_user_group_role_resource`.`id` AS `id`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`appId` AS `appId`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`user` AS `user`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`group` AS `group`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`role` AS `role`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`resource` AS `resource`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`allowOrDeny` AS `allowOrDeny`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`desc` AS `desc`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`source` AS `source`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`operation` AS `operation`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`operationByUserId` AS `operationByUserId`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`operationByUser` AS `operationByUser`,
`lms_data_repository`.`enterprise_user_group_role_resource`.`operationAt` AS `operationAt`
from
`lms_data_repository`.`enterprise_user_group_role_resource`
where
(
(
`lms_data_repository`.`enterprise_user_group_role_resource`.`appId` = 'lms-seo-admin'
)
or (
`lms_data_repository`.`enterprise_user_group_role_resource`.`appId` = '*'
)
)
_view01_user
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view01_user` AS
select
`lms_data_repository`.`enterprise_view01_user`.`id` AS `id`,
`lms_data_repository`.`enterprise_view01_user`.`idSequence` AS `idSequence`,
`lms_data_repository`.`enterprise_view01_user`.`userId` AS `userId`,
`lms_data_repository`.`enterprise_view01_user`.`username` AS `username`,
`lms_data_repository`.`enterprise_view01_user`.`phoneNumber` AS `phoneNumber`,
`lms_data_repository`.`enterprise_view01_user`.`email` AS `email`,
`lms_data_repository`.`enterprise_view01_user`.`userStatus` AS `userStatus`,
`lms_data_repository`.`enterprise_view01_user`.`qiweiId` AS `qiweiId`,
`lms_data_repository`.`enterprise_view01_user`.`userConfig` AS `userConfig`,
`lms_data_repository`.`enterprise_view01_user`.`password` AS `password`,
`lms_data_repository`.`enterprise_view01_user`.`md5Salt` AS `md5Salt`,
`lms_data_repository`.`enterprise_view01_user`.`clearTextPassword` AS `clearTextPassword`,
`lms_data_repository`.`enterprise_view01_user`.`operation` AS `operation`,
`lms_data_repository`.`enterprise_view01_user`.`operationByUserId` AS `operationByUserId`,
`lms_data_repository`.`enterprise_view01_user`.`operationByUser` AS `operationByUser`,
`lms_data_repository`.`enterprise_view01_user`.`operationAt` AS `operationAt`
from
`lms_data_repository`.`enterprise_view01_user`
_view02_user_app
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `_view02_user_app` AS
select
`lms_data_repository`.`enterprise_view02_user_app`.`id` AS `id`,
`lms_data_repository`.`enterprise_view02_user_app`.`userId` AS `userId`,
`lms_data_repository`.`enterprise_view02_user_app`.`appId` AS `appId`
from
`lms_data_repository`.`enterprise_view02_user_app`
where
(
`lms_data_repository`.`enterprise_view02_user_app`.`appId` = 'lms-seo-admin'
)
view01_article
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_article` AS
select
`article`.`id` AS `id`,
`article`.`articleId` AS `articleId`,
`article`.`categoryId` AS `categoryId`,
`article`.`articleGroupName` AS `articleGroupName`,
`article`.`articleTagList` AS `articleTagList`,
`article`.`articleDescription` AS `articleDescription`,
`article`.`articlePublishStatus` AS `articlePublishStatus`,
`article`.`articlePublishTime` AS `articlePublishTime`,
`article`.`articleTitle` AS `articleTitle`,
`article`.`articleCoverImage` AS `articleCoverImage`,
`article`.`articleAudioUrl` AS `articleAudioUrl`,
`article`.`articleVideoUrl` AS `articleVideoUrl`,
`article`.`articleCreateTime` AS `articleCreateTime`,
`article`.`articleCreateUserId` AS `articleCreateUserId`,
`article`.`articleCreateUsername` AS `articleCreateUsername`,
`article`.`articleUpdateTime` AS `articleUpdateTime`,
`article`.`articleUpdateUserId` AS `articleUpdateUserId`,
`article`.`articleUpdateUsername` AS `articleUpdateUsername`,
`article`.`operation` AS `operation`,
`article`.`operationByUserId` AS `operationByUserId`,
`article`.`operationByUser` AS `operationByUser`,
`article`.`operationAt` AS `operationAt`,
`category`.`categoryName` AS `categoryName`,
`category`.`categoryIntro` AS `categoryIntro`,
`category`.`categoryGroup` AS `categoryGroup`,
`category`.`categoryGroupSort` AS `categoryGroupSort`
from
(
`article`
left join `category` on (
(`article`.`categoryId` = `category`.`categoryId`)
)
)
view01_category
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`%` SQL SECURITY DEFINER VIEW `view01_category` AS
select
count(
(
`article`.`articlePublishStatus` in ('public', 'login')
)
) AS `count`,
`category`.`id` AS `id`,
`category`.`categoryId` AS `categoryId`,
`category`.`categoryName` AS `categoryName`,
`category`.`categoryArticleIgnoreTiltle` AS `categoryArticleIgnoreTiltle`,
`category`.`categoryGroup` AS `categoryGroup`,
`category`.`categoryGroupSort` AS `categoryGroupSort`,
concat(
'<',
`category`.`categoryGroup`,
`category`.`categoryGroupSort`,
'>'
) AS `categoryGroupConcat`,
`category`.`categoryIntro` AS `categoryIntro`,
`category`.`categoryPublishStatus` AS `categoryPublishStatus`,
`category`.`categoryCreateTime` AS `categoryCreateTime`,
`category`.`categoryCreateUserId` AS `categoryCreateUserId`,
`category`.`categoryCreateUsername` AS `categoryCreateUsername`,
`category`.`categoryUpdateTime` AS `categoryUpdateTime`,
`category`.`categoryUpdateUserId` AS `categoryUpdateUserId`,
`category`.`categoryUpdateUsername` AS `categoryUpdateUsername`,
`category`.`operation` AS `operation`,
`category`.`operationByUserId` AS `operationByUserId`,
`category`.`operationByUser` AS `operationByUser`,
`category`.`operationAt` AS `operationAt`
from
(
`category`
left join `article` on (
(`category`.`categoryId` = `article`.`categoryId`)
)
)
group by
`category`.`categoryId`