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 java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * .
 * </p>
 *
 * @author lisizhe on 2023-11-30 19:17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("game_fruit_user")
public class GameFruitUser extends BaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 系统来源.
   */
  @TableField("sys_origin")
  private String sysOrigin;

  /**
   * 用户id.
   */
  @TableField("user_id")
  private Long userId;

  /**
   * 最后活跃时间.
   */
  @TableField("last_active_time")
  private Date lastActiveTime;

  /**
   * 下注次数.
   */
  @TableField("bet_size")
  private Integer betSize;

  /**
   * 下注金额.
   */
  @TableField("bet_amount")
  private BigDecimal betAmount;

  /**
   * 中奖金额.
   */
  @TableField("earning")
  private BigDecimal earning;


}
