Authored by chaogeng

Update 种草表结构.md

... ... @@ -121,6 +121,7 @@ CREATE TABLE `grass_comment_praise` (
`comment_id` int(11) unsigned DEFAULT NULL COMMENT '评论id',
`uid` int(11) unsigned DEFAULT NULL COMMENT '点赞者uid',
`create_time` int(11) unsigned DEFAULT NULL COMMENT '点赞时间',
`update_time` int(11) unsigned DEFAULT NULL COMMENT '更新时间',
`status` tinyint(1) unsigned DEFAULT NULL COMMENT '状态(0:已点赞,1:已取消)',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_uid_commentid` (`uid`,`comment_id`) USING BTREE
... ... @@ -229,6 +230,7 @@ CREATE TABLE `grass_article_praise` (
`article_id` int(11) unsigned DEFAULT NULL COMMENT '文章id',
`uid` int(11) unsigned DEFAULT NULL COMMENT '点赞者uid',
`create_time` int(11) unsigned DEFAULT NULL COMMENT '创建时间',
`update_time` int(11) unsigned DEFAULT NULL COMMENT '更新时间',
`status` tinyint(1) unsigned DEFAULT NULL COMMENT '状态(0:已点赞,1:已取消)',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_udid_articleid` (`uid`,`article_id`) USING BTREE
... ... @@ -244,6 +246,7 @@ CREATE TABLE `user_favorite_article` (
`uid` int(11) unsigned DEFAULT NULL COMMENT '收藏者uid',
`article_id` int(11) unsigned DEFAULT NULL COMMENT '文章id',
`create_time` int(11) unsigned DEFAULT NULL COMMENT '创建时间',
`update_time` int(11) unsigned DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `ufa_uq_uid_articleid` (`uid`,`article_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
... ...