Files
im/database/wa_friend_circle_comment.sql
T
2026-04-10 13:31:15 +08:00

17 lines
872 B
SQL

CREATE TABLE `wa_friend_circle_comment` (
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`circle_id` int NOT NULL COMMENT '朋友圈动态ID',
`user_id` int NOT NULL COMMENT '用户ID',
`reply_user_id` int NOT NULL DEFAULT '0' COMMENT '回复的用户ID(0表示直接评论)',
`body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '评论内容',
`created_at` int NOT NULL COMMENT '创建时间',
`updated_at` int NOT NULL COMMENT '更新时间',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态(0:隐藏 1:正常)',
PRIMARY KEY (`id`),
KEY `circle_id` (`circle_id`),
KEY `user_id` (`user_id`),
KEY `reply_user_id` (`reply_user_id`),
KEY `status` (`status`),
KEY `created_at` (`created_at`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='朋友圈评论表';