package com.red.circle.other.infra.database.mongo.entity.game.turntable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 游戏参与人.
 *
 * @author pengliang on 2021/3/19
 */
@Data
@Accessors(chain = true)
@Document("room_turntable_game_participating_users")
@EqualsAndHashCode(callSuper = false)
public class RoomTurntableGameParticipatingUser implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 标识符.
   */
  @Id
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 游戏ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long gameId;

  /**
   * 随机数.
   */
  private Integer randomNumber;

  /**
   * 用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 房间id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long roomId;

  /**
   * 用户昵称.
   */
  private String userNickname;

  /**
   * 用户头像.
   */
  private String userAvatar;

  /**
   * 过期时间.
   */
  private Timestamp expiredTime;

  /**
   * 创建时间.
   */
  private Timestamp createTime;

  /**
   * 是否淘汰.
   */
  private Boolean jackpot;

  /**
   * 消费金币.
   */
  private BigDecimal gameGolds;

}
