Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add topic follow feature support #273

Merged
merged 6 commits into from
Apr 20, 2023
Merged

add topic follow feature support #273

merged 6 commits into from
Apr 20, 2023

Conversation

alimy
Copy link
Collaborator

@alimy alimy commented Apr 20, 2023

  • add topic follow feature support

pr特性:

  • 添加话题关注的功能,用户可以自行关注感兴趣的话题;

备注:需要导入scripts/migration/**/*_topic_follow.up.sql 进行数据库升级,请根据部署环境自行做相应操作。

      CREATE TABLE `p_topic_user` (
	      `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
	      `topic_id` BIGINT UNSIGNED NOT NULL COMMENT '标签ID',
	      `user_id` BIGINT UNSIGNED NOT NULL COMMENT '创建者ID',
	      `alias_name` VARCHAR ( 255 ) COMMENT '别名',
	      `remark` VARCHAR ( 512 ) COMMENT '备注',
	      `quote_num` BIGINT UNSIGNED COMMENT '引用数',
	      `is_top` TINYINT UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否置顶 0 为未置顶、1 为已置顶',
	      `created_on` BIGINT UNSIGNED NOT NULL DEFAULT '0' COMMENT '创建时间',
	      `modified_on` BIGINT UNSIGNED NOT NULL DEFAULT '0' COMMENT '修改时间',
	      `deleted_on` BIGINT UNSIGNED NOT NULL DEFAULT '0' COMMENT '删除时间',
	      `is_del` TINYINT UNSIGNED NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
	      `reserve_a` VARCHAR ( 255 ) COMMENT '保留字段a',
	      `reserve_b` VARCHAR ( 255 ) COMMENT '保留字段b',
	      PRIMARY KEY ( `id` ) USING BTREE,
        UNIQUE KEY `idx_topic_user_uid_tid` ( `topic_id`, `user_id` ) USING BTREE 
      ) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户话题';

@alimy alimy merged commit 5b08ad5 into rocboss:dev Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant