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.time.LocalDateTime;

/**
 * 奖励实体类
 * 
 * @author huazhongmin
 * @date 2025-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_reward")
public class Reward extends BaseEntity {

    /**
     * 课题ID
     */
    @TableField("topic_id")
    private String topicId;

    /**
     * 成就ID
     */
    @TableField("achievement_id")
    private String achievementId;

    /**
     * 奖励类型
     */
    @TableField("type")
    private String type;

    /**
     * 奖励名称
     */
    @TableField("name")
    private String name;

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

    /**
     * 图标
     */
    @TableField("icon")
    private String icon;

    /**
     * 稀有度
     */
    @TableField("rarity")
    private String rarity;

    /**
     * 奖励值
     */
    @TableField("value")
    private String value;

    /**
     * 获得时间
     */
    @TableField("earned_time")
    private LocalDateTime earnedTime;

    /**
     * 是否新获得
     */
    @TableField("is_new")
    private Integer isNew;
}
