drop table if exists sp_def_process_auth;

CREATE TABLE `sp_def_process_auth` (
  `id` varchar(32) CHARACTER SET utf8 NOT NULL COMMENT '主键',
  `sp_id` varchar(32) CHARACTER SET utf8 DEFAULT NULL COMMENT '流程主键',
  `authority` varchar(32) CHARACTER SET utf8 DEFAULT NULL COMMENT '授权（角色）',
  `tenant_id` varchar(32) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户id',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='流程与授权关系';