SET NAMES utf8mb4;

ALTER TABLE `tb_workflow_share`
    ADD COLUMN `share_purpose` VARCHAR(32) NOT NULL DEFAULT 'COLLABORATION'
        COMMENT '分享用途：COLLABORATION/CHAT' AFTER `workflow_id`;

DROP INDEX `idx_workflow_share_status` ON `tb_workflow_share`;

CREATE INDEX `idx_workflow_share_purpose_status`
    ON `tb_workflow_share` (`workflow_id`, `share_purpose`, `status`);
