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 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_integral_record")
public class GameRoomPkIntegralRecord extends TimestampBaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * ID.
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

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

  /**
   * PK记录ID.
   */
  @TableField("game_room_pk_id")
  private Long gameRoomPkId;

  /**
   * 接收火力值用户ID (pk类型为房间对战房间时该字段为roomId否则为userId).
   */
  @TableField("receiver_user_id")
  private Long receiverUserId;

  /**
   * 火力值.
   */
  @TableField("integral")
  private Long integral;

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

}
