collection.sql 707 B

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