package com.emotion.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.emotion.common.BaseEntity;
import lombok.experimental.SuperBuilder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 成长课题实体类
 * 
 * @author huazhongmin
 * @date 2025-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_growth_topic")
public class GrowthTopic extends BaseEntity {

    /**
     * 课题标题
     */
    @TableField("title")
    private String title;

    /**
     * 分类
     */
    @TableField("category")
    private String category;

    /**
     * 难度: easy-简单, medium-中等, hard-困难
     */
    @TableField("difficulty")
    private String difficulty;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 持续天数
     */
    @TableField("duration_days")
    private Integer durationDays;

    /**
     * 解锁条件
     */
    @TableField("unlock_conditions")
    private String unlockConditions;

    /**
     * 是否解锁
     */
    @TableField("is_unlocked")
    private Integer isUnlocked;

    /**
     * 进度百分比
     */
    @TableField("progress")
    private BigDecimal progress;

    /**
     * 完成时间
     */
    @TableField("completed_time")
    private LocalDateTime completedTime;

    /**
     * 奖励
     */
    @TableField("rewards")
    private String rewards;
}
