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 dlt_predict_record
 */
@TableName(value ="dlt_predict_record")
@Data
public class DltPredictRecord {
    /**
     * 唯一标识符
     */
    @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 frontendBall1;

    /**
     * 前区2
     */
    private Integer frontendBall2;

    /**
     * 前区3
     */
    private Integer frontendBall3;

    /**
     * 前区4
     */
    private Integer frontendBall4;

    /**
     * 前区5
     */
    private Integer frontendBall5;


    /**
     * 后区1
     */
    private Integer backendBall1;

    /**
     * 后区2
     */
    private Integer backendBall2;

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

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

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

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