|
|
@ -70,7 +70,7 @@ CREATE TABLE `p_comment_content` (
|
|
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '内容ID',
|
|
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '内容ID',
|
|
|
|
`comment_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '评论ID',
|
|
|
|
`comment_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '评论ID',
|
|
|
|
`user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
|
|
|
|
`user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
|
|
|
|
`content` varchar(65535) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '内容',
|
|
|
|
`content` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '内容',
|
|
|
|
`type` tinyint unsigned NOT NULL DEFAULT '2' COMMENT '类型,1标题,2文字段落,3图片地址,4视频地址,5语音地址,6链接地址',
|
|
|
|
`type` tinyint unsigned NOT NULL DEFAULT '2' COMMENT '类型,1标题,2文字段落,3图片地址,4视频地址,5语音地址,6链接地址',
|
|
|
|
`sort` bigint unsigned NOT NULL DEFAULT '100' COMMENT '排序,越小越靠前',
|
|
|
|
`sort` bigint unsigned NOT NULL DEFAULT '100' COMMENT '排序,越小越靠前',
|
|
|
|
`created_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
|
|
`created_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
|
@ -93,7 +93,7 @@ CREATE TABLE `p_comment_reply` (
|
|
|
|
`comment_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '评论ID',
|
|
|
|
`comment_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '评论ID',
|
|
|
|
`user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
|
|
|
|
`user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
|
|
|
|
`at_user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '@用户ID',
|
|
|
|
`at_user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '@用户ID',
|
|
|
|
`content` varchar(65535) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '内容',
|
|
|
|
`content` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '内容',
|
|
|
|
`ip` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'IP地址',
|
|
|
|
`ip` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'IP地址',
|
|
|
|
`ip_loc` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'IP城市地址',
|
|
|
|
`ip_loc` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'IP城市地址',
|
|
|
|
`thumbs_up_count` int unsigned NOT NULL DEFAULT '0' COMMENT '点赞数',
|
|
|
|
`thumbs_up_count` int unsigned NOT NULL DEFAULT '0' COMMENT '点赞数',
|
|
|
@ -224,7 +224,7 @@ CREATE TABLE `p_post_content` (
|
|
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '内容ID',
|
|
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '内容ID',
|
|
|
|
`post_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'POST ID',
|
|
|
|
`post_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'POST ID',
|
|
|
|
`user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
|
|
|
|
`user_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
|
|
|
|
`content` varchar(65535) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '内容',
|
|
|
|
`content` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '内容',
|
|
|
|
`type` tinyint unsigned NOT NULL DEFAULT '2' COMMENT '类型,1标题,2文字段落,3图片地址,4视频地址,5语音地址,6链接地址,7附件资源,8收费资源',
|
|
|
|
`type` tinyint unsigned NOT NULL DEFAULT '2' COMMENT '类型,1标题,2文字段落,3图片地址,4视频地址,5语音地址,6链接地址,7附件资源,8收费资源',
|
|
|
|
`sort` int unsigned NOT NULL DEFAULT '100' COMMENT '排序,越小越靠前',
|
|
|
|
`sort` int unsigned NOT NULL DEFAULT '100' COMMENT '排序,越小越靠前',
|
|
|
|
`created_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
|
|
`created_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
|
|