Skip to content

user_likes 用户点赞记录表

字段名字段类型字段注释默认值可空备注
idbigint UNSIGNED主键 IDNO自动递增
user_idbigint UNSIGNED用户主键 IDNO关联字段 users->id
mark_typetinyint UNSIGNED操作类型1NO1.正向(赞) / 2.反向(踩)
like_typetinyint UNSIGNED目标类型1NO1.用户 / 2.小组 / 3.话题 / 4.帖子 / 5.评论
like_idbigint UNSIGNED目标 IDNO1.关联字段 users->id
2.关联字段 groups->id
3.关联字段 hashtags->id
4.关联字段 posts->id
5.关联字段 comments->id
created_attimestamp点赞时间CURRENT_TIMESTAMPNO
updated_attimestamp更新时间YES
deleted_attimestamp删除时间YES

Released under the Apache-2.0 License