flow_user.sql 877 B

123456789101112131415161718192021
  1. create table flow_user
  2. (
  3. id bigint not null comment '主键id'
  4. primary key,
  5. type char not null comment '人员类型(1待办任务的审批人权限 2待办任务的转办人权限 3待办任务的委托人权限)',
  6. processed_by varchar(80) null comment '权限人',
  7. associated bigint not null comment '任务表id',
  8. create_time datetime null comment '创建时间',
  9. create_by varchar(80) null comment '创建人',
  10. update_time datetime null comment '更新时间',
  11. del_flag char default '0' null comment '删除标志',
  12. tenant_id varchar(40) null comment '租户id'
  13. )
  14. comment '流程用户表';
  15. create index user_associated
  16. on flow_user (associated);
  17. create index user_processed_type
  18. on flow_user (processed_by, type);