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

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 lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 抽奖游戏奖励配置.
 * </p>
 *
 * @author pengshigang
 * @since 2021-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("game_lottery_reward_config")
public class GameLotteryRewardConfig extends TimestampBaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @TableId("id")
  private Long id;

  /**
   * 分组id.
   */
  @TableField("group_id")
  private Long groupId;

  /**
   * 道具类型.
   */
  @TableField("type")
  private String type;

  /**
   * 道具明细类型.
   */
  @TableField("detail_type")
  private String detailType;

  /**
   * 内容(道具id或金币钻石等).
   */
  @TableField("content")
  private String content;

  /**
   * 赠送天数.
   */
  @TableField("quantity")
  private Integer quantity;

  /**
   * 概率.
   */
  @TableField("probability")
  private BigDecimal probability;

  /**
   * 奖品库存.
   */
  @TableField("inventory")
  private Integer inventory;

  /**
   * 辅助字段(根据游戏类型存自己想要的数据).
   */
  @TableField("data_help")
  private String dataHelp;

  /**
   * 排序.
   */
  @TableField("sort")
  private Integer sort;


}
