package com.red.circle.game.fruit.infrastructure.database.entity;

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.BaseEntity;
import java.io.Serial;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 摩天轮开奖记录.
 * </p>
 *
 * @author lisizhe on 2023-11-30 19:18
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("game_fruit_lottery_record")
public class GameFruitLotteryRecord extends BaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 游戏id.
   */
  @TableField("game_id")
  private Long gameId;

  /**
   * 奖品id.
   */
  @TableField("prize_id")
  private Long prizeId;

  /**
   * 奖品类型 1 蔬菜 2 披萨
   */
  @TableField("prize_type")
  private Integer prizeType;

  /**
   * 奖品名称.
   */
  @TableField("prize_name")
  private String prizeName;

  /**
   * 图片.
   */
  @TableField("prize_img")
  private String prizeImg;

  /**
   * 奖励倍数.
   */
  @TableField("award")
  private Integer award;

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


}
