File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff 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
124137CREATE  TABLE  `wedpr_group ` (
125138  ` group_id`   varchar (64 ) COLLATE utf8mb4_bin NOT NULL ,
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments