package com.zhentao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 签到记录实体类
 */
@Data
@TableName("checkin_record")
public class CheckinRecord implements Serializable {
    
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    
    /**
     * 用户ID
     */
    private Long userId;
    
    /**
     * 签到日期
     */
    private LocalDate checkinDate;
    
    /**
     * 当前连续签到天数
     */
    private Integer continuousDays;
    
    /**
     * 累计签到天数
     */
    private Integer totalDays;
    
    /**
     * 是否获得奖励
     */
    private Integer rewardReceived;
    
    /**
     * 奖励类型 (1:1天VIP, 2:3天VIP, 3:7天VIP)
     */
    private Integer rewardType;
    
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}

