数据结构
12086表总览
通用表
- _user
- _user_session
- _role
- _page
- _resource
- _group
- _user_group_role
- _user_group_role_page
- _user_group_role_resource
- _constant
- _constant_ui
- _record
- _record_history
- _cache
- _file
- _view01_user
业务表
_ui
- ui 施工方案
CREATE TABLE `_ui` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`jhId` varchar(255) DEFAULT NULL,
`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 = 13 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = DYNAMIC COMMENT = 'ui 施工方案'
album
CREATE TABLE `album` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`albumId` bigint(20) DEFAULT NULL,
`albumTitle` varchar(255) DEFAULT NULL,
`albumSort` varchar(255) DEFAULT NULL,
`albumQuery` text COMMENT '专辑查询sql 配置{ \n "tableName":"article", \n "where":"where articleId = ''10000'' ",\n "limit":"50",\n "queryType":"order",\n "orderBy":"order by createTime desc"\n}',
`albumStatus` varchar(255) DEFAULT NULL COMMENT '专辑状态 active, disabled',
`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 `albumId_unique` (`albumId`) USING BTREE,
UNIQUE KEY `albumTitle_unique` (`albumTitle`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC
article
CREATE TABLE `article` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`articleId` bigint(20) DEFAULT NULL COMMENT '文章id, 10000 ++',
`categoryId` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '分类id',
`articleGroupName` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '文章所属分组名',
`articleTagList` text CHARACTER SET utf8mb4 COMMENT '标签; 用, 拼接',
`articlePublishStatus` varchar(255) CHARACTER SET utf8mb4 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) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '默认视频URL',
`articleCreateTime` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '创建时间',
`articleCreateUserId` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '创建者用户ID',
`articleCreateUsername` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '创建者用户名',
`articleUpdateTime` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '更新时间',
`articleUpdateUserId` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '更新者用户ID',
`articleUpdateUsername` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '更新者用户名',
`operation` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '操作: insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '操作者userId',
`operationByUser` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '操作者用户名',
`operationAt` varchar(255) CHARACTER SET utf8mb4 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 = 2502 DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC
article_history
CREATE TABLE `article_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`articleId` bigint(20) DEFAULT NULL COMMENT '文章id, 10000 ++',
`categoryId` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '分类id',
`articleGroupName` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '文章所属分组名',
`articleTagList` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '标签; 用, 拼接',
`articlePublishStatus` varchar(255) CHARACTER SET utf8mb4 DEFAULT 'login' 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 CHARACTER SET utf8mb4 COMMENT '文章作业 [{ }]',
`articleAssignmentListWithAnswer` text CHARACTER SET utf8mb4 COMMENT '文章作业答案 [{ }]',
`articleAudioUrl` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '默认音频URL唯一的',
`articleVideoUrl` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '默认视频URL',
`articleCreateTime` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '创建时间',
`articleCreateUserId` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '创建者用户ID',
`articleCreateUsername` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '创建者用户名',
`articleUpdateTime` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '更新时间',
`articleUpdateUserId` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '更新者用户ID',
`articleUpdateUsername` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '更新者用户名',
`operation` varchar(255) CHARACTER SET utf8mb4 DEFAULT 'insert' COMMENT '操作: insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 219 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = DYNAMIC
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 COMMENT '目录中需要省略的文字',
`categoryIntro` text CHARACTER SET utf8mb4 ,
`categoryTagList` varchar(255) DEFAULT NULL,
`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 '',
PRIMARY KEY (`id`) USING BTREE,
KEY `categoryId_unique` (`categoryId`) USING BTREE,
KEY `categoryName_unique` (`categoryName`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 323 DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC
code_view
CREATE TABLE `code_view` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idSequence` bigint(20) DEFAULT NULL COMMENT '顺序Id',
`codeId` varchar(255) DEFAULT NULL COMMENT '代码Id',
`codeTitle` varchar(255) DEFAULT NULL COMMENT '标题',
`codeContent` text CHARACTER SET utf8mb4 COMMENT '代码块',
`language` varchar(255) DEFAULT NULL COMMENT '类型:html/sql',
`operation` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '操作: insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '操作者userId',
`operationByUser` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '操作者用户名',
`operationAt` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3006 DEFAULT CHARSET = utf8 ROW_FORMAT = DYNAMIC
comment
CREATE TABLE `comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`articleId` int(11) DEFAULT NULL,
`username` varchar(255) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作: insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC
seo_ui
- 常量表;
CREATE TABLE `seo_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 = 18 DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC 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 '分类',
`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 = 47 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = DYNAMIC 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,
`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 = 374 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = DYNAMIC
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 ROW_FORMAT = DYNAMIC COMMENT = '旋风定制页面表'
业务视图
_view02_user_app
CREATE ALGORITHM = UNDEFINED DEFINER = `root` @`localhost` SQL SECURITY DEFINER VIEW `_view02_user_app` AS
select
(
case `jh_enterprise_v2_data_repository`.`enterprise_view02_user_app`.`appId`
when 'jianghu-doc' then 'seo'
when 'jianghu-doc-admin' then 'admin'
else NULL
end
) AS `jhId`,
`jh_enterprise_v2_data_repository`.`enterprise_view02_user_app`.`id` AS `id`,
`jh_enterprise_v2_data_repository`.`enterprise_view02_user_app`.`userId` AS `userId`,
`jh_enterprise_v2_data_repository`.`enterprise_view02_user_app`.`appId` AS `appId`
from
`jh_enterprise_v2_data_repository`.`enterprise_view02_user_app`
where
(
`jh_enterprise_v2_data_repository`.`enterprise_view02_user_app`.`appId` in ('jianghu-doc', 'jianghu-doc-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`.`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`,
`article`.`articleContent` AS `articleContent`,
`article`.`articleContentForSeo` AS `articleContentForSeo`
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`