Skip to content

Commit d746c70

Browse files
committed
add wedpr_follower_table for admin
1 parent 32e1c6f commit d746c70

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

wedpr-admin/db/wedpr-admin_ddl.sql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@ CREATE TABLE `wedpr_dataset_permission` (
120120
KEY `expired_at_index` (`expired_at`)
121121
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC COMMENT='数据集权限表';
122122

123+
create table if not exists `wedpr_follower_table`(
124+
`id` varchar(64) not null comment "id",
125+
`user_name` varchar(255) not null comment "关注人",
126+
`agency` varchar(255) not null comment "关注人所在机构",
127+
`resource_id` varchar(64) not null comment "关注的审批单",
128+
`type` varchar(255) not null comment "关注类型(如审批单, 任务)",
129+
`create_time` DATETIME DEFAULT CURRENT_TIMESTAMP comment "创建时间",
130+
`last_update_time` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment "更新时间",
131+
primary key(`id`),
132+
index resource_id_index(`resource_id`),
133+
index user_index(`user_name`(128), `agency`(128)),
134+
index follower_type_index(`type`)
135+
)ENGINE=InnoDB default charset=utf8mb4 default collate=utf8mb4_bin ROW_FORMAT=DYNAMIC;
123136

124137
CREATE TABLE `wedpr_group` (
125138
`group_id` varchar(64) COLLATE utf8mb4_bin NOT NULL,

0 commit comments

Comments
 (0)