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;

/**
 * <p>
 * 转盘游戏记录.
 * </p>
 *
 * @author houyong
 * @since 2021-03-03
 */
@Data
@Accessors(chain = true)
@Document("room_turntable_game")
@EqualsAndHashCode(callSuper = false)
public class RoomTurntableGame implements Serializable {

  private static final long serialVersionUID = 1L;


  /**
   * 主键标识.
   */
  @Id
  @JsonSerialize(using = ToStringSerializer.class)
  private Long roomId;

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

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

  /**
   * 房主用户id.
   */
  private Long homeownerUserId;

  /**
   * 角色.
   */
  private String roles;

  /**
   * 入场费.
   */
  private BigDecimal gameGolds;

  /**
   * 游戏状态.
   */
  private String status;

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

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

}
