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_achievement")
public class Achievement extends BaseEntity {

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

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

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

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

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

    /**
     * 条件类型
     */
    @TableField("condition_type")
    private String conditionType;

    /**
     * 条件值
     */
    @TableField("condition_value")
    private String conditionValue;

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

    /**
     * 解锁时间
     */
    @TableField("unlocked_time")
    private LocalDateTime unlockedTime;

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

    /**
     * 是否隐藏
     */
    @TableField("is_hidden")
    private Integer isHidden;
}
