-- 招聘信息主表增加自增主键ID
-- 1. recruit_id 从物理主键调整为普通业务编号，允许重复。
-- 2. 新增 id 作为 ccdi_staff_recruitment 的自增主键。

ALTER TABLE `ccdi_staff_recruitment`
    CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

ALTER TABLE `ccdi_staff_recruitment`
    DROP PRIMARY KEY,
    ADD COLUMN `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键ID' FIRST,
    ADD PRIMARY KEY (`id`),
    ADD KEY `idx_staff_recruitment_recruit_id` (`recruit_id`);
