-- 1. 学员收藏表 CREATE TABLE `main_student_collection` ( `id` bigint(20) NOT NULL COMMENT '主键', `student_id` bigint(20) NOT NULL COMMENT '学员ID', `target_id` bigint(20) NOT NULL COMMENT '收藏目标ID(岗位ID/测评ID)', `type` varchar(20) NOT NULL COMMENT '收藏类型(job:岗位, assessment:测评)', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `create_by` varchar(64) DEFAULT NULL COMMENT '创建者', `update_time` datetime DEFAULT NULL COMMENT '更新时间', `update_by` varchar(64) DEFAULT NULL COMMENT '更新者', PRIMARY KEY (`id`), KEY `idx_student_type` (`student_id`,`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='学员收藏表';