package com.red.circle.other.infra.database.rds.entity.game;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.red.circle.framework.mybatis.entity.TimestampBaseEntity;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 爆水晶游戏进度.
 * </p>
 *
 * @author pengliang
 * @since 2021-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("game_burst_crystal_progress")
public class GameBurstCrystalProgress extends TimestampBaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 规则id.
   */
  @TableField("rule_id")
  private Long ruleId;


  /**
   * 数值日期GMT+3.
   */
  @TableField("number_date")
  private Integer numberDate;

  /**
   * 房间id.
   */
  @TableField("room_id")
  private Long roomId;

  /**
   * 进度情况.
   */
  @TableField("progress_rate")
  private BigDecimal progressRate;

  /**
   * 盒子等级.
   */
  @TableField("box_level")
  private Integer boxLevel;

  /**
   * 游戏状态.
   */
  @TableField("status")
  private String status;

  public GameBurstCrystalProgress withCreateTime(Timestamp createTime) {
    this.setCreateTime(createTime);
    return this;
  }

}
