package com.ylx.point.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ylx.common.annotation.Excel;
import com.ylx.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 用户签到状态快照对象 point_user_sign_status
 *
 * @author wzj
 * @date 2026-03-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PointUserSignStatus extends BaseEntity {
    private static final long serialVersionUID = 7915471354684478199L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * $column.columnComment
     */
    @Excel(name = "用户的openID")
    private String openId;

    /**
     * $column.columnComment
     */
    @Excel(name = "签到活动ID", readConverterExp = "对=应point_activity.id")
    private Long activityId;

    /**
     * 最后成功签到日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后成功签到日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastSignDate;

    /**
     * 当前连续天数
     */
    @Excel(name = "当前连续天数")
    private Integer currentContinuousDays;

    /**
     * 历史最高连续天数 (可选，用于成就系统)
     */
    @Excel(name = "历史最高连续天数 (可选，用于成就系统)")
    private Long maxHistoricalDays;

    /**
     * 本周期已领取奖励的最高天数阈值 (防止重复发阶梯奖)
     */
    @Excel(name = "本周期已领取奖励的最高天数阈值 (防止重复发阶梯奖)")
    private Integer lastRewardCycleDays;

    @TableField(exist = false)
    private String createBy;

    @TableField(exist = false)
    private String updateBy;

    @TableField(exist = false)
    private Date createTime;

    @TableField(exist = false)
    private Date updateTime;

}
