package com.guo.learningprogresstracker.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import lombok.Data; import lombok.EqualsAndHashCode; /** * 存储学习任务的基本信息,包括优先级的多维度计算 * @TableName tasks */ @TableName(value ="tasks") @Data public class TaskEntity extends BaseEntity implements Serializable { @TableId(value = "id",type = IdType.AUTO) private int id; /** * 任务编码 */ @TableField(value = "task_num") private String taskNum; /** * 学习任务的名称 */ @TableField(value = "task_name") private String taskName; /** * 学习材料的存储URL */ @TableField(value = "material_url") private String materialUrl; /** * 用户设置的任务紧急性 */ @TableField(value = "urgency") private Integer urgency; /** * 用户设置的任务重要性 */ @TableField(value = "importance") private Integer importance; /** * 任务的内容难度 */ @TableField(value = "content_difficulty") private Integer contentDifficulty; /** * 任务的未来价值 */ @TableField(value = "future_value") private Integer futureValue; /** * 用户对任务的主观优先级 */ @TableField(value = "subjective_priority") private Integer subjectivePriority; /** * 通过算法计算得出的任务优先级 */ @TableField(value = "calculated_priority") private Double calculatedPriority; @TableField(exist = false) private static final long serialVersionUID = 1L; }