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

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
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;

/**
 * 团队PK记录
 *
 * @author pengshigang on 2022/9/14
 */
@Data
@Accessors(chain = true)
@Document("game_team_pk_count")
@EqualsAndHashCode(callSuper = false)
public class GameTeamPkCount implements Serializable {

  private static final long serialVersionUID = 1L;
  /**
   * 过期时间.
   */
  Timestamp expiredTime;
  /**
   * 记录编号.
   */
  @Id
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;
  /**
   * 系统.
   */
  private String sysOrigin;
  /**
   * 房间id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long roomId;
  /**
   * MVP用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long mvpUserId;
  /**
   * 蓝队积分.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long blueTeamScore;
  /**
   * 红队积分.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long redTeamScore;
  /**
   * 游戏开始时间
   */
  private Timestamp createTime;

}
