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

/**
 * <p>
 * 用户每日盈利排名.
 * </p>
 *
 * @author lisizhe on 2023-11-30 19:17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("game_fruit_user_days_ranking")
public class GameFruitUserDaysRanking 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("bet_size")
  private Integer betSize;

  /**
   * 赚取金额.
   */
  @TableField("earning")
  private BigDecimal earning;

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

  /**
   * 年月日.
   */
  @TableField("date")
  private String date;


}
