package com.xy.xyaicpzs.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.util.Date;
import lombok.Data;

/**
 * 彩票开奖信息表
 * @TableName predict_record
 */
@TableName(value ="predict_record")
@Data
public class PredictRecord {
    /**
     * 唯一标识符
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 开奖期号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long drawId;

    /**
     * 开奖日期
     */
    private Date drawDate;

    /**
     * 红1
     */
    private Integer redBall1;

    /**
     * 红2
     */
    private Integer redBall2;

    /**
     * 红3
     */
    private Integer redBall3;

    /**
     * 红4
     */
    private Integer redBall4;

    /**
     * 红5
     */
    private Integer redBall5;

    /**
     * 红6
     */
    private Integer redBall6;

    /**
     * 蓝球
     */
    private Integer blueBall;

    /**
     * 预测状态(待开奖/已开奖)
     */
    private String predictStatus;

    /**
     * 预测结果(未中奖/三等奖/二等奖/一等奖)
     */
    private String predictResult;

    /**
     * 预测时间
     */
    private Date predictTime;

    /**
     * 奖金
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long bonus;

    /**
     * 类型
     */
    private String type;
}