drop table if exists sp_def_process_action;

CREATE TABLE `sp_def_process_action` (
  `id` varchar(32) CHARACTER SET utf8 NOT NULL COMMENT '主键',
  `sp_id` varchar(32) CHARACTER SET utf8 NOT NULL COMMENT '状态流程定义',
  `action_id` varchar(32) CHARACTER SET utf8 NOT NULL COMMENT '活动',
  `mount_id` varchar(32) CHARACTER SET utf8 NOT NULL COMMENT '挂载点 状态或者事件',
  `act_params` text CHARACTER SET utf8 COMMENT '活动数据',
  `tenant_id` varchar(32) CHARACTER SET utf8 NOT NULL DEFAULT 'NK' COMMENT '租户',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='流程活动关系';