package com.red.circle.other.infra.database.rds.entity.game;

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

/**
 * <p>
 * 房间PK记录.
 * </p>
 *
 * @author pengshigang
 * @since 2021-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("game_room_pk_record")
public class GameRoomPkRecord extends TimestampBaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

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

  /**
   * 发起人用户ID.
   */
  @TableField("sponsor_user_id")
  private Long sponsorUserId;

  /**
   * 发起人房间id.
   */
  @TableField("sponsor_room_id")
  private Long sponsorRoomId;

  /**
   * 接受人用户ID.
   */
  @TableField("recipient_user_id")
  private Long recipientUserId;

  /**
   * 接受人房间id.
   */
  @TableField("recipient_room_id")
  private Long recipientRoomId;

  /**
   * 状态：GameStateEnum.
   */
  @TableField("game_status")
  private String gameStatus;

  /**
   * 游戏结束时间.
   */
  @TableField("end_time")
  private Timestamp endTime;

  /**
   * pk选定分钟数.
   */
  @TableField("pk_duration")
  private Long pkDuration;

  /**
   * pk类型.
   */
  @TableField("pk_type")
  private String pkType;


}
