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

数据范围的管理,应该抽象为统一的,不同模块字段级别区分 #67

Open
gotoworld opened this issue Oct 28, 2024 · 0 comments

Comments

@gotoworld
Copy link

建议相应业务模型如下:

CREATE TABLE `t_biz_visible_range` (
  `biz_type` varchar(100) NOT NULL COMMENT '业务类型,如:消息通知,企业管理',
  `biz_id` bigint(20) NOT NULL COMMENT '业务id',
  `data_type` tinyint(4) NOT NULL COMMENT '数据类型1员工 2部门',
  `data_id` bigint(20) NOT NULL COMMENT '员工or部门id',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  UNIQUE KEY `uk_notice_data` (`biz_id`,`data_type`,`data_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='可见范围';
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

No branches or pull requests

1 participant